Problem in creating a Big Prime Sieve

I am facing problem in creating a sieve of order 10^6 (my program stopped and do not run) while I can create sieve up to 10^5 without any issue.

please share the link of your code

paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793

This code runs on coding blocks tle but is not running on code blocks (Code blocks says program has stopped).

code is correct

always consider answer of online ide as correct

Code Blocks gives you wrong ans
then there should be problem with code blocks

1 Like

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.

1 Like