样例没问题
#include<bits/stdc++.h>
using namespace std;
bool tmp(long long b)
{
if(b==1)return false;
if(b==2)
{
return true;
}
for(long long i=2;i<b;i++)
{
if(b%i==0)return false;
}
return true;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long t;
cin>>t;
for(long long i=1;i<=t;i++)
{
long long x,y;
cin>>x>>y;
for(long long j=x;j<=y;j++)
{
if(tmp(j))
{
cout<<j<<'\n';
}
}
cout<<'\n';
}
return 0;
}