I want to turn this "pseudocode" into something that works in Java and I'm having trouble
for j = i², i²+i, i²+2i, ..., not exceeding n:
Would this be correct?
for (int j = i*i; j < n; j++) {
//other code here that does the operation:
isPrime[j] = false;
j = j+i;
}