nextProbablePrime(BigInteger n) It uses the sieve of Eratosthenes to discard several composite numbers in
some appropriate range (at the moment
[this, this + 1024] ).
It uses the sieve of Eratosthenes to discard several composite numbers in
some appropriate range (at the moment
[this, this + 1024] ). After
this process it applies the Miller-Rabin test to the numbers that were
not discarded in the sieve.
See Also:BigInteger.nextProbablePrime See Also:Primality.millerRabin(BigInteger,int)