Deepak and primes

Not giving answer please tell error

here is your corrected code: