Deepak and Primes


here is my code.
Test case 0 and 1 do not passes .
can you check this

hey @nikhilmeena please replace 1000000 by 100000005 at all places as 1000000 is not big enough to accommodate all the primes needed.

https://ide.codingblocks.com/s/201240. replaced but got error compilation error.
Can you check the code again

you didnt replace each number, pelase refer to this code https://ide.codingblocks.com/s/201252

201252 that is your code also gave segmentation fault error.

@nikhilmeena might have pasted wrong code, please check this one https://ide.codingblocks.com/s/201322

201322 this code also the same error.
segmentation fault

Sorry because of the problem with the hackerblocks it was showing AC for the above codes, please try this one https://ide.codingblocks.com/s/201418

Same error occurred segmentation fault
First, run from your end and then send the code

it is passing all the test cases for me

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.