Deepak and primes--

giving run error in 5 th and 6th case

Change the value of N to 90000000, as per constraints, and then try to submit.