标签:als code bool nbsp print 输出 span col 质数
1 boolean isFlag = true; 2 for (int i = 2; i <= 100; i++) { 3 for (int j = 2; j <= Math.sqrt(i); j++) { 4 if (i % j == 0) { 5 isFlag = false; 6 break; 7 } 8 } 9 if (isFlag) { 10 System.out.println(i); 11 } 12 isFlag = true; 13 }
标签:als code bool nbsp print 输出 span col 质数
原文地址:https://www.cnblogs.com/vegeta-xiao/p/12610504.html