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

Class java.math.TestPrime

java.math.TestPrime

public class TestPrime
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)

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)

All Packages  Class Hierarchy  This Package  Previous  Next  Index