this code is working fine in any other compiler but but when i click on submit it shows time limit exceeded what i can i do to make it more smaller?? help!
"less than creting problem with pre tag so it look a little bit nasty but in actual it is i less than t"
t=input("")
i=0
while i
<
t:
min,max=map(int,raw_input().split())
for a in range(min,max+1):
count=0
for b in range(2,a/2):
if (a%b)==0:
count=1
break
if count==0 and a!=1 and a!=4:
print(a)
print
i+=1