public class PrimeNumberTest {
public static void main(String[] args) {
int count=0;
label:for(int i=2;i<=100;i++) {
for(int j = 2;j<Math.sqrt(i);j++) {
if(i%j == 0) {
continue label;
}
}
count++;
System.out.println(i);
}
System.out.println("质数个数:"+count);
}
}