becasue prime no. is a no. aliquant by a no. among 2 and itself.
i want use a for statement, and use A to devide by (2,A), if A divisible by any no. in (2,a), A is not a prime.
int i,a,c;
for(a=2;a<1000;a+){
for(i=2;i<a; ){
while(c=a%i){i++}
}System.out.println();
}
it's wrong.
pls help. i don't know why, i have no clue. totely no clue!
help!