/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
/** * Tests whether this {@code BigInteger} is probably prime. If {@code true} * is returned, then this is prime with a probability greater than * {@code 1 - 1/2<sup>certainty</sup>)}. If {@code false} is returned, then this * is definitely composite. If the argument {@code certainty} <= 0, then * this method returns true. * * @param certainty tolerated primality uncertainty. * @return {@code true}, if {@code this} is probably prime, {@code false} * otherwise. */ public boolean isProbablePrime(int certainty) { if (certainty <= 0) { return true; } return getBigInt().isPrime(certainty); }
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);
probPrime.putCopy(startPoint); probPrime.addPositiveInt(j); if (probPrime.isPrime(100)) { return new BigInteger(probPrime);