Class TDivPrimeTest
java.lang.Object
de.tilman_neumann.jml.primes.probable.TDivPrimeTest
public class TDivPrimeTest
extends java.lang.Object
A deterministic prime test for N < 32 bit using fast trial division.
-
Method Summary
Modifier and Type Method Description static TDivPrimeTest
getInstance()
boolean
isPrime(int N)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
- Returns:
- the only TDivPrimeTest instance (singleton)
-
isPrime
public boolean isPrime(int N)
-