Пример #1
0
 def test_is_prime_miller_rabin_wrong_values(self) :
     for q in self.wrong_values :
         self.assertFalse(numbers.is_prime_miller_rabin(q))
Пример #2
0
 def test_is_prime_miller_rabin_known_values(self) :
     for p in self.known_values :
         self.assertTrue(numbers.is_prime_miller_rabin(p))