BigInteger.primeToCertainty

Returns {@code true} if this BigInteger is probably prime, {@code false} if it's definitely composite.

This method assumes bitLength > 2.

@param certainty a measure of the uncertainty that the caller is willing to tolerate: if the call returns {@code true} the probability that this BigInteger is prime exceeds {@code (1 - 1/2<sup>certainty</sup>)}. The execution time of this method is proportional to the value of this parameter. @return {@code true} if this BigInteger is probably prime, {@code false} if it's definitely composite.

class BigInteger
bool
primeToCertainty
(,
Random* random
)

Meta