必定采纳。谢谢了。必定采纳。谢谢了。必定采纳,谢谢了。
public static void main(String[] args) {
int count = 1;
skip: for (int i = 2; i <= 200; i++) {
for (int j = 2; j < i; j++) {
if (i % j == 0) {
continue skip;
}
}
System.out.print(i + "\t");
if (count++ % 7 == 0) {
System.out.println();
}
}
}
有帮助 望采纳