All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----cryptix.math.TestPrime
New code should probably use java.math.BigInteger, which has an
isProbablePrime
method (and also a constructor for
generating random probable-primes).
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
public TestPrime()
public static boolean hasSmallFactor(BigInteger n)
public static boolean hasSmallFactor(BigInteger n, TestPrimeObserver obsrv)
public static boolean isPrime(BigInteger p)
public static boolean isPrime(BigInteger p, TestPrimeObserver obsrv)
public static void main(String args[])
public static void self_test(PrintWriter out) throws Exception
All Packages Class Hierarchy This Package Previous Next Index