Deepak and Primes Problem

code: https://ide.codingblocks.com/s/152442
what is wrong in my code? Please help!

Hi shashank
Your code corrected :

Hope it helps
Please mark resolved if satisfied :slight_smile: