@[Eason_AC](/space/show?uid=112917)
把
```cpp
void Essf_Solve () {
memset (IsPrime, true, sizeof(IsPrime));
for(int i = 2; i <= maxn; ++i)
if (IsPrime[i])
for(int j = i * 2; j <= maxn; ++j)
IsPrime[j] = false;
}
```
改为
```
void Essf_Solve () {
memset (IsPrime, true, sizeof(IsPrime));
for(int i = 2; i <= maxn; ++i)
if (IsPrime[i])
for(int j = i * 2; j <= maxn; j+=i)
IsPrime[j] = false;
}
```
by Smile_Cindy @ 2019-02-10 09:12:18
```cpp
void Essf_Solve () {
memset (IsPrime, true, sizeof(IsPrime));
for(int i = 2; i <= maxn; ++i)
if (IsPrime[i])
for(int j = i * 2; j <= maxn; ++j)//++J把所有数都遍历了
IsPrime[j] = false;
}
```
by 吴名玄 @ 2019-02-10 09:24:35
#9 RE
by Eason_AC @ 2019-02-10 10:30:31
第九个点RE,88分,咋回事啊啊啊啊
by Eason_AC @ 2019-02-10 10:30:57
把:
```cpp
const int maxn=1e7;
```
改成:
```cpp
const int maxn=1e8
```
结果九个点全部TLE了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
by Eason_AC @ 2019-02-10 10:33:31
TLE吗......节哀顺变(?
by 音无一岚幸运E @ 2019-02-20 13:31:28