第26695题 单选题
埃氏素数筛Python实现的空缺处应填入的代码是?

下面是埃氏素数筛的Python实现,横线上应填入的代码是( )。

def listPrime(N):
    primeList = list(range(N+1))
    primeList[0] = primeList[1] = False
    for i in range(2,int(N ** 0.5) + 1):
        if primeList[i] != False:
            for j in range(_____________):
                primeList[j] = False
    return [x for x in primeList if x != False]
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析