Home
last modified time | relevance | path

Searched refs:isProbablePrime (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DOldBigIntegerTest.java126 if (!bi.isProbablePrime(17)) { in test_isProbablePrimeI()
130 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
134 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
140 .valueOf(a).isProbablePrime(5)); in test_isProbablePrimeI()
141 } else if (BigInteger.valueOf(a).isProbablePrime(17)) { in test_isProbablePrimeI()
149 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
156 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
168 if (!bi.isProbablePrime(80)) { in test_isProbablePrimeI()
172 if (!bi.isProbablePrime(80)) { in test_isProbablePrimeI()
183 c.isProbablePrime(80) ); in test_isProbablePrimeI()
[all …]
DBigIntegerTest.java169 if (!bi.isProbablePrime(17)) { in test_isProbablePrimeI()
173 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
177 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
183 .valueOf(a).isProbablePrime(5)); in test_isProbablePrimeI()
184 } else if (BigInteger.valueOf(a).isProbablePrime(17)) { in test_isProbablePrimeI()
192 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
199 if (bi.isProbablePrime(17)) { in test_isProbablePrimeI()
/libcore/luni/src/test/java/libcore/java/math/
DBigIntegerTest.java109 assertTrue(b.isProbablePrime(100)); in test_Constructor_IILjava_util_Random()
113 assertTrue(b.isProbablePrime(100)); in test_Constructor_IILjava_util_Random()
117 assertTrue(b.isProbablePrime(100)); in test_Constructor_IILjava_util_Random()
127 assertTrue(b.isProbablePrime(100)); in test_Constructor_IILjava_util_Random()
148 assertTrue(b.isProbablePrime(100)); in test_probablePrime()
152 assertTrue(b.isProbablePrime(100)); in test_probablePrime()
156 assertTrue(b.isProbablePrime(100)); in test_probablePrime()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimeTest.java119 .filter(bi -> bi.isProbablePrime(certainty)) in checkPrime()
154 .filter(b -> !b.isProbablePrime(certainty)).collect(toList());
187 Assert.assertTrue(mp.isProbablePrime(certainty), in checkMersennePrimes()
DProbablePrime.java46 boolean b = num.isProbablePrime(certainties[i]); in testProbablePrime()
DBigIntegerTest.java810 Assert.assertTrue(p1.isProbablePrime(100), p1.toString(16)); in prime()
819 Assert.assertTrue(p1.isProbablePrime(100), "Mersenne prime "+i+ " failed."); in prime()
825 Assert.assertTrue(p1.isProbablePrime(100), "Customer prime "+i+ " failed."); in prime()
831 Assert.assertFalse(c1.isProbablePrime(100), "Carmichael "+i+ " reported as prime."); in prime()
847 if (f2.isProbablePrime(100)) { in prime()
849 if (f3.isProbablePrime(100)) { in prime()
851 Assert.assertFalse(c1.isProbablePrime(100), "Computed Carmichael " in prime()
865 Assert.assertFalse(c1.isProbablePrime(100), in prime()
873 Assert.assertFalse(c1.isProbablePrime(100), in prime()
918 Assert.assertFalse(p2.isProbablePrime(100), in nextProbablePrime()
/libcore/ojluni/annotations/sdk/nullability/java/math/
DBigInteger.annotated.java123 public boolean isProbablePrime(int certainty) { return false; } in isProbablePrime() method in BigInteger
/libcore/ojluni/src/test/java/security/KeyAgreement/
DKeySizeTest.java137 if (!p.isProbablePrime(128)) { in testKeyAttributes()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java3926 public boolean isProbablePrime(int certainty) {
/libcore/api/
Dcurrent.txt5352 method public boolean isProbablePrime(int);