Why am i not getting correct answer?

I tried this question - check primes on hackerblocks. But i am not getting correct answer. Please help

Code Link: https://ide.codingblocks.com/s/239532