Code problem again

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=" ")

Save your code here.
Since the indentation is not clear in the above code .
Save your code in the above ide and share its link here itself so i can look into it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.