Hi

I am stuck on this code. I am trying to find the 10001 prime number.

Any help with my code would be appreciated.

public class TenThousOnePrime {

static double prime;

public static void main(String[] args){

double testOne = 4;

int counter = 2;

for (int i = 2; i < testOne; i++){

if (testOne % i == 0){

testOne++;

i = 2;

} else {

prime = testOne;

testOne++;

counter++;

}

while (testOne < 10002)

continue;

}

System.out.println(prime);

}

}