package Base_se.Base_701;
/**
* @author gyf
* @ClassName test
* @Date 2024/7/1 19:57
* @Version V1.0
* @Description :找101-200之间的质数
*/
public class Solution {
public static void main(String[] args) {
int cout = 0;
for (int i = 100; i < 201; i++) {
boolean flag = true;
for (int j = 2; j <= Math.sqrt(i); j++) {
if (i % j == 0) {
flag = false;
break;
}
}
if (flag) {
System.out.println(i);
cout++;
}
}
System.out.println(cout);
}
}