how to do this
def prime(m,n):
for i in range(m,n + 1):
f = 0
for j in range(2,int(i**0.5) + 1):
if(i % j == 0):
f = 1
break
if(f == 0):
if(i != 0 and i != 1):
print(i)
t = int(input())
for x in range(t):
count = 0
l = list(map(int,input().split()))
prime(l[0],l[1])
my code above