#include
using namespace std;
int main()
{
int t;
cin>>t;
while(t–)
{
int a,b,count=0;
cin>>a>>b;
for(int i=a;i<=b;i++)
{
bool flag=true;
if(i==1)
flag=false;
for(int j=2;j<=i/2;j++)
{
if(i%j==0)
{
flag=false;
break;
}
}
if(flag)
count++;
}
cout<<count<<endl;
}
return 0;
}
what am i doing wrong