没有东西输出
import java.util.Scanner;class Test {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
int c= scan.nextInt( );
int count= 0;
for (int i= 2; i <= 1000; i++) {
boolean t = true;
for (int j = 2; j <= i; j++) {
t = false;
break;
}
if (t = true) {
count++;
}
}
System.out.println(count);
label: for (int i= 2; i <= 1000; i++) {
for (int j= 2; j <= Math.sqrt(i); j++) {
continue label;
}
count++;
}
System.out.println(count);
}
}