1 回答
已采纳
qq___524
TA贡献171条经验 获得超74个赞
<html>
<head>
<title>null</title>
</head>
<body onload="fun()">
<script>
function fun(){
var count = 0, i, j;
for (i = 100; ; i++){
for (j = 2; j <= Math.sqrt(i); j++){
if (i%j == 0){
break;
}
}
if (j > Math.sqrt(i)){
count++;
}
if (count == 13){
document.write(i);
break;
}
}
}
</script>
</body>
</html>添加回答
举报
0/150
提交
取消
