Searched refs:certainty (Results 1 - 3 of 3) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | OldBigIntegerTest.java | 81 int certainty[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 84 for (int c = 0; c < certainty.length; c++) { 266 // shows that certainty 80 is "practically aquivalent" to certainty 100
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInteger.java | 151 * {@code 1 - 1/2<sup>certainty</sup>)}. 158 * @param certainty tolerated primality uncertainty. 163 public BigInteger(int bitLength, int certainty, Random random) { argument 1022 * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this 1023 * is definitely composite. If the argument {@code certainty} <= 0, then 1026 * @param certainty tolerated primality uncertainty. 1030 public boolean isProbablePrime(int certainty) { argument 1031 if (certainty <= 0) { 1034 return getBigInt().isPrime(certainty);
|
H A D | BigInt.java | 345 boolean isPrime(int certainty) { argument 346 return NativeBN.BN_is_prime_ex(bignum, certainty, 0);
|
Completed in 159 milliseconds