Class cryptix.math.TestPrime
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.math.TestPrime

java.lang.Object
   |
   +----cryptix.math.TestPrime

public class TestPrime
extends Object
This function tests the primality of a BigIntegers.

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Constructor Index

 o TestPrime()

Method Index

 o hasSmallFactor(BigInteger)
 o hasSmallFactor(BigInteger, TestPrimeObserver)
 o isPrime(BigInteger)
 o isPrime(BigInteger, TestPrimeObserver)
 o main(String[])
 o self_test(PrintStream, String[])

Constructors

 o TestPrime
  public TestPrime()

Methods

 o hasSmallFactor
  public final static boolean hasSmallFactor(BigInteger n)
 o hasSmallFactor
  public final static boolean hasSmallFactor(BigInteger n,
                                             TestPrimeObserver obsrv)
 o isPrime
  public static boolean isPrime(BigInteger p)
 o isPrime
  public static boolean isPrime(BigInteger p,
                                TestPrimeObserver obsrv)
 o main
  public static void main(String argv[])
 o self_test
  public static void self_test(PrintStream out,
                               String argv[]) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index