$ Prime Sieve | Eratosthenes Sieve

I have checked mulitple times but my code is not running https://ide.codingblocks.com/s/207439 here is the link of the code for the problem Sieve of Erastoshenese

@mikki18 the size of the declared was 1e7+1, I have changed it to 1e6+1. In the video it was 1e6 as well.
1e7 array exceeds memory limit.