BigInteger.isProbablePrime

BigInteger.isProbablePrime

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean isProbablePrime( int certainty )
Description
Returns true if this BigInteger is probably prime, false if it's definitely composite. The certainty parameter is a measure of the uncertainty that the caller is willing to tolerate: the method returns true if the probability that this number is is prime exceeds 1 - 1/2**certainty. The execution time is proportional to the value of the certainty parameter.