// This program lists the prime numbers in a range using Sieve of Eratosthenes // Reference: http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes public class SieveOfEratosthenes { private boolean isPrime[]; // never use the 0th and 1st elements // Constructor. N is the upper range boundary public SieveOfEratosthenes(int N){ isPrime = new boolean[N]; for(int i=2; i