Runtime Error of the code

The Code below gives correct output in jupyter notebook but here it gives Runtime error.Please help mw where i m doing wrong

t = int(input())
while t > 0 :
m , n = int(input()), int(input())
if m > 0 and n > 0:
for num in range(m,n+1):

        if num > 1:
            for i in range(2,num//2 + 1):
                if num % i == 0:
                    break
            else:
                print(num)
t -= 1

Hey @Shashitarwey, can you please share the link of online IDE ? It is difficult to debug the code from the message.
Only then will I be able to help :slight_smile:

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.