Acme
Class Primes

java.lang.Object
  extended by Acme.Primes
All Implemented Interfaces:
java.util.Enumeration

public class Primes
extends java.lang.Object
implements java.util.Enumeration


Constructor Summary
Primes(long from, long to)
           
 
Method Summary
 boolean hasMoreElements()
           
 boolean isPrime(long n)
           
 java.lang.Object nextElement()
           
 long nextElementL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primes

public Primes(long from,
              long to)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

nextElementL

public long nextElementL()

isPrime

public boolean isPrime(long n)