No able to pass the test cases of deepak and primes

hi i am not able to pass all the test cases of deepak and primes coding challenge of number theory
please review my code : https://ide.codingblocks.com/s/199568

I have edited your code… Try to submit it now…