Deepak and Primes incorrect output

Please check and explain why it is not showing correct results.

Hey @tgoel5884