getting correct answer on spoj for PRIME1 but getting wrong on codechef

i submitted solution for PRIME1 on spoj i got correct answer.but for the same problem here on codechef i’m getting wrong answer.please give me a test case where my solution is failing.

question

my solution on codechef getting wrong answer

spoj accepted

@saimadan may be test files are different from each others.

And getting AC signal doesn’t mean your solution is correct , it just have a simple meaning that your solution passes the test cases generated by Problem Setter.

Thanks

1 Like

please can you help me with this i tried my solution on various inputs but i’m unable to find the error.so can you help with this test case