[Java] 纯文本查看 复制代码 public class Demo04 {
public static void main(String[] args) {
a: for (int i = 2,count = 0; i <= 100; i++) {
for (int j = 2; j < i; j++) {
if (i % j == 0)
continue a;
}
System.out.print(i + "\t");
if (++count % 6 == 0)
System.out.println();
}
}
} |