예제 #1
0
 def test_50000_is_not_prime(self):
     assert not isprime(50000)
예제 #2
0
 def test_4_is_not_prime(self):
     assert not isprime(4)
예제 #3
0
 def test_44909_is_prime(self):
     assert isprime(44909)
예제 #4
0
 def test_2_is_prime(self):
     assert isprime(2)
예제 #5
0
 def test_7_is_prime(self):
     assert isprime(7)
예제 #6
0
 def test_50000_is_not_prime(self):
     assert not isprime(50000)
예제 #7
0
 def prime_number(self, value):
     if isprime(value):
         self._prime_number = value
예제 #8
0
 def test_44909_is_prime(self):
     assert isprime(44909)
예제 #9
0
 def test_4_is_not_prime(self):
     assert not isprime(4)
예제 #10
0
 def test_7_is_prime(self):
     assert isprime(7)
예제 #11
0
 def test_2_is_prime(self):
     assert isprime(2)
예제 #12
0
 def prime_number(self, value):
     if isprime(value):
         self._prime_number = value