//help me with this code
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a=0,b=0,cases=0,count=0,i=0,j=0;
cin>>cases;
do
{
for(i=0;i<cases;i++)
{
cin>>a>>b;
for(i=a;i<=b;i++)
{
count=0;
for(j=1;j<=i;j++)
{
if(i%j==0)
count++;
}
if(count==2)
cout<<i<<endl;
}
cout<<endl;
count++;
}
}
while(count<=(cases+1));
getch();
}