TLE ERROE NOT RESOLVED


this code is showing tle even when i’m using space and time optimised bitset sieve… what concept i have missed while solving this question ?

@perul1999 your code is correct i think it is some tech error in Online IDE, try to submit it later it will be updated shortly.

please notify me as soon as it get’s updated

yeah sure will inform you.

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.

code is still showing TLE …

@perul1999,
Corrected code, here.

why only upto 2e6 ??

@perul1999,
You don’t need more than that.