t=int(input())
if t>0:
for x in range(t):
m,n=map(int,input().strip().split())
for num in range(m,n+1):
if num>1:
for i in range(2,num):
if(num%i)==0:
break
else:
print(num,end=" ")
break
print()
what is the problem in this code?
it is running successfully on Jupiter notebook but here it is showing test case failed
