PPT Slide
public static void main (String arg[ ]) {
boolean[ ] bPrime = new boolean[MAX];
/* set all candidates to true */
for (int i=2; i< MAX; i++)
/* set to false all multiples of the counters */
for (int I = 2; I < MAX/2; i++)
for (int j = 2; j < MAX/i; j++)
for (int i=1; i<MAX-1; i++)
System.out.println (i + " is prime");
the array; we don’t place