public class one{
public static void main(String[] args){
int count=0;
for(int i=101;i<=200;i++){
boolean flag=true;
for(int j=2;j<=(int)Math.sqrt(i);j++){
if(i%j==0){
flag=false;
break;
}
}
if(flag){
count++;
System.out.println("当前数字"+i+"是质数");
}
}
System.out.println(count);
}
}
最近浏览更多
klasjflewf LV3
2023年8月16日
yongjava21 LV26
2023年1月13日
java小书童 LV18
2023年1月11日
歪头熊猫lalala
2023年1月7日
暂无贡献等级
包呼和 LV10
2023年1月5日
zxc666
2023年1月5日
暂无贡献等级
微信网友_6291253820755968
2023年1月4日
暂无贡献等级
CrystalQ LV8
2023年1月4日
阿龙05 LV6
2023年1月4日
wwww1984 LV14
2023年1月2日

最近下载
