Wrong answers in deepak-and-primes

here is code id-

(https://ide.codingblocks.com/s/124435)

This my solution hope this helps