Test Cases Failed for this code

N = int(input())
for k in range(N):
m,n = input().split()
m = int(m)
n = int(n)
for i in range(m,n+1):
if i > 1:
isDivisible = False
for j in range(2,i):
if i%j == 0:
isDivisible = True
break
if not isDivisible:
print(i,end=" ")
print(end = “\n”)

Please post your code on the Coding Blocks’ IDE and share the link here.

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.