|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part2.MR
A class to implement the Miller-Rabin Primility Test.
Constructor Summary | |
MR(int t,
java.security.SecureRandom rnd)
A constructor where t is the number of iterations
for the Miller-Rabin Primality Test
and rnd is a source of randomness. |
Method Summary | |
boolean |
isPrime(java.math.BigInteger x)
A method to check the primility of the big integer x using
the Miller-Rabin Primality Test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MR(int t, java.security.SecureRandom rnd)
t
is the number of iterations
for the Miller-Rabin Primality Test
and rnd
is a source of randomness.
java.lang.Exception
Method Detail |
public boolean isPrime(java.math.BigInteger x) throws java.lang.Exception
x
using
the Miller-Rabin Primality Test.
isPrime
in interface PrimeTester
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |