I am a beginner. I do not understand the error, what does it mean NZEC?
def criba_eratostenes(n):
l=[]
multiplos = set()
for i in range(2, n+1):
if i not in multiplos:
l.append(i)
multiplos.update(range(i*i, n+1, i))
return l
n=int(input())
while n!=0:
a=input().split()
lista=criba_eratostenes(int(a[1]))
for k in lista:
if k>=int(a[0]):
print(k)
print()
n-=1
created
last reply
- 2
replies
- 915
views
- 3
users