I’m getting EOF when reading a line
I can’t understand why is it coming.
Here’s my code:
def isprime(n):
if n>1:
for i in range(2,n):
if n%i==0:
return False
else:
return True
t=int(input())
if t<10:
for i in range(t):
a,b = [int(a) for a in input().split()]
x=[]
for i in range(a,b):
if isprime(i)==True:
x.append(i)
else:
continue
print(x)
else:
print(“error”)