Deepak and primes problem


please check my code.

@Devansh_29 you have taken array size 50000 and cheking indices upto 500000 which will give you run error.
and in this question you have to print upto 5000000th prime number that lies around 10^8 so make your prime array of this size.

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.