package com.task020201;
public class Demo8 {
public static void main(String[] args) {
int i, j, count = 0;
System.out.println("所有素数为");
for (i = 101; i < 200; i++) {
boolean foial = false;
for (j = 2; j < i; j++) {
if (i % j == 0) {
foial = true;
break;
}
}
if (foial == false) {
System.out.print(i + " ");
count++;
if (count % 5 == 0) {
System.out.println();
}
}
}
System.out.println("count=" + count);
}
}