org.jwarp.util
Class PrimeGenerator

java.lang.Object
  |
  +--org.jwarp.util.PrimeGenerator

public class PrimeGenerator
extends java.lang.Object

Class for gerentating primes.

Author:
Anatole Tresch

Field Summary
protected static long c_lastPrime
          Last prime found.
 
Constructor Summary
PrimeGenerator()
           
 
Method Summary
static long nextPrime()
          Return next prime.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c_lastPrime

protected static long c_lastPrime
Last prime found.
Constructor Detail

PrimeGenerator

public PrimeGenerator()
Method Detail

nextPrime

public static long nextPrime()
Return next prime.
Returns:
The next prime

©   O R C A   S y s t e m s