Hi while solving the prime sieve problem, i noticed the constraints say N<=500000, while i have been able to pass the current testcases, my code isn’t able to actually meet this constraint and find the 500000th prime number or even the 499999th prime number.
i have tried increasing the max_size but the code crashes anyways… can you please look into it and let me know what i can do to meet this constraint with my code??
here’s a link: https://ide.codingblocks.com/s/306209
Thanks!