My code is working fine on jupyter and code blocks ide but it is showng run error on submission.
t=int(input())
for x in range(1,t+1):
n1=int(input())
n2=int(input())
print()
for y in range(n1,n2+1):
if y==1:
continue
for i in range(2,y):
if y%i==0:
break;
else :
print(y,end=" ")