PRIME1: Getting wa

Why i get wrong answer with this code in which case does it fail???

#include <iostream>

using namespace std;

int main()
{
	int TC;
	scanf("%d",&TC);
	while(TC--)
	{
		int a,b;
		scanf("%d %d",&a,&b);
		while(a<(b+1))
		{
			if (a==1){a++;}
			if (a==(b+1)){break;}
			if (a==2||a==3||a==5||a==7) {printf("%d\n",a);}
			if (a%2==0 ||a%3==0 ||a%4==0 ||a%5==0 ||a%6==0 ||a%7==0 ||a%8==0 ||a%9==0){}
			else {printf("%d\n",a);}
			a++;
			
		}
		printf("\n");
	}
	return 0;
}

Try this one

1
120
130

:wink:

//