Prime() 공개 정적인 메소드

public static Prime ( int nth ) : int
nth int
리턴 int
예제 #1
0
 public void There_is_no_zeroth_prime()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => NthPrime.Prime(0));
 }
예제 #2
0
 public void Big_prime()
 {
     Assert.Equal(104743, NthPrime.Prime(10001));
 }
예제 #3
0
 public void Second_prime()
 {
     Assert.Equal(3, NthPrime.Prime(2));
 }
예제 #4
0
 public void Sixth_prime()
 {
     Assert.Equal(13, NthPrime.Prime(6));
 }
예제 #5
0
 public void First_prime()
 {
     Assert.Equal(2, NthPrime.Prime(1));
 }