The execution time is proportional to the value of the certainty parameter. The given random number generator is used to select candidates to be tested for primality. Returns a BigInteger with the specified value. Note that exponent is an integer rather than a BigInteger. Returns a BigInteger whose value is the absolute value of this number.
Sign extension is performed.
ArithmeticException Returns true iff the designated bit is set. Returns -1 if this number contains no one bits. This method is useful when implementing bit-vector style sets atop BigIntegers. Returns true if this BigInteger is probably prime, false if it's definitely composite. The execution time is proportional to the value of the certainty parameter.