标签:oid == sum for 欧拉 bre int false break
void sd()
{ int sum=0;
for (int i = 2; i <= 100000; i++)
{
if (p[i] == false)
s[sum++] = i;
for (int j = 0; j < sum; j++)
{
if (i * s[j] > 100000)
break;
p[i * s[j]] = true;
if (i % s[j] == 0)
break;
}
}
}
标签:oid == sum for 欧拉 bre int false break
原文地址:https://www.cnblogs.com/zxz666/p/10315871.html