I submitted this following code for prime 1 it works fine on my pycharms but here judge shows tle can someone point out the problem in the code `
`import sys
def primes_sieve(limit):
limitn = limit+1
not_prime = set()
primes = []
for i in range(2, limitn):
if i in not_prime:
continue
for f in range(i*2, limitn, i):
not_prime.add(f)
primes.append(i)
return primes
for i in range(int((raw_input()))):
num1,num2=map(int,raw_input().split())
primes=primes_sieve(num2)
for i in primes:
if i in xrange(num1,num2+1):
print i
sys.exit(0)