I am not able to understand why am I getting run-error.
Pls check and let me know.
IDE : https://ide.codingblocks.com/s/193194
Deepak and primes
Run time error means your code is trying to access some illegal memory.
Check your logic again and dry run on some inputs like 1000.
yes!! Till what number should I compute prime ?
The size of your sieve array should be 100000001.
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.