具体看案例:
public class Sushu {
public static void main(String[] args) {
//1.定义一个循环,找到101-200之间的全部素数
for (int i = 101; i <=200 ; i++) {
//信号为,作为标记使用
boolean flag=true; //一开始认为当前的数据是素数,最后在判断
//2.判断当前遍历的这个数据是否是素数
for (int j = 2; j



