Generate all prime numbers between two given numbers!

#include <stdio.h>
#include <math.h>
int main(void) {
unsigned long long int m,n,i,j,sq;
int T,k;
scanf(“%d”,&T);
if(T>0&&T<=10)
{
for(k=0;k<T;k++)
{
scanf(“%llu”,&m);
scanf(“%llu”,&n);
if(n>0&&n<=1000000000LL)
{
if(m>0&&m<=n)
{
if((n-m)<=1000000LL)
{
for(i=m;i<=n;i++)
{
if(i==1)
continue;
else if(i==2||i==3)
{
printf(“%llu\n”,i);
}
else
{
//printf(“%llu “,i);

if(i%2!=0LL)
{
sq=(long long int)sqrt(i);
for(j=2LL;j<=sq;j++)
{
if(i%j==0LL)
{
break;
}
}
if(j>sq)
printf(“%llu\n”,i);
}
}
}
printf(“\n”);
}
}
}
}
}
return 0;
}