Memory limit exceeded

pls teel me what size should i take to avoid MLE or if there’s a problem in my code

hello @Garvit012
use boolean for prime array.

now its giving TLE:https://ide.codingblocks.com/s/242851....although on codeblocks it works perfectly fine

yeah ,there is some issue with checker ,it is showing tle even for editorial solution.
try again after sometime

ohk thankyou pls resolve it as soon as possible and if possible give me a heads up