|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.math.Primality
class Primality
| Method Summary | |
|---|---|
(package private) static BigInteger |
nextProbablePrime(BigInteger n)
It uses the sieve of Eratosthenes to discard several composite numbers in some appropriate range (at the moment [this, this + 1024]). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
static BigInteger nextProbablePrime(BigInteger n)
[this, this + 1024]). After
this process it applies the Miller-Rabin test to the numbers that were
not discarded in the sieve.
BigInteger.nextProbablePrime(),
#millerRabin(BigInteger, int)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||