getting wrong answer as output after submission ! Suggest some test cases

getting wrong answer as output after submitting the code for prime palindrome problem…don’t know why…cannot find any negative test cases…it’s irritating when you can’t find out the reason. please help.

link to the problem : http://www.codechef.com/problems/PRPALIN

code :

#include <stdio.h>

int main(void) {
int n,m,i,j,count,n2,c;
scanf("%d",&n);

for(i=n;i<=1000000;i++)
    {   count=0;
        for(j=1;j<=i;j++)
        {
            if(i%j==0)
            {
	            count++;
            }
        }
    
        if(count==2)
        {
            c=0;n2=0;m=i;
            while(i>0)
            {
                c=i%10;
                i=i/10;
                n2=(n2*10)+c;
            }
            i=m;
            if(m==n2)
            {
                printf("%d",m);
                break;
            }
        
        }
    }
return 0;

}

please suggest some negative test cases as soon as possible

Your code do not run on this test case:

Input:
1000000

Output:
    [BLANK]

alt text


Try to Debug the solution.. :)