Deepak and prime


sir/mam,
code showing error
please rectify my code.

hello @Korou

see value of n can be upto 5000 000 and 5000 000th prime number can be greater than ur current sieve size.
so first check value of 5000 000th prime number and declare ur sieve size greater than that

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.