t=input()
c=1
if t<=10:
while c<=t:
m=input()
n=input()
if n-m<=100000 and m>=1 and n<=1000000000:
while m<=n:
a=2
while a<m:
if m%a==0:break
else:
a+=1
if a==m:
print m
m+=1
c+=1
created
last reply
- 10
replies
- 366
views
- 3
users