105,210,315,420,525,630,
735,840,945,
共有9个数
<script>
function IsThatNumber(x)
{
return x%3==0 && x%5==0 && x%7==0;
}
var i,n=0;
for(i=1;i<1000;n++)
{
if (IsThatNumber(i))
{
document.write(i);
document.write(",");
n++;
if (n%6 == 0) document.write("<br />");
}
}
document.write("<br />");
document.write("共有"+n+"个数");
</script>
时间: 2024-10-06 00:40:33