package Test;
public class Application {
public static void main(String[] args) {
for (int i = 100; i <= 200; i++) {
int count = 0;
for (int j = 2; j <= Math.sqrt(i); j++) {
if (i % j == 0)
count++;
}
if (count == 0)
System.out.print(i + " ");
}
}
}
作业要自己做