Prime Sieve Video

This program is for prime no
Code is perfectly working for 10^5
it’s not working for 10^6
even I am using long long int

Your code is working fine. It’s correct. Can you please tell me where you are compiling and what’s the exact doubt. and no need to use long long, you can use bool to reduce memory.

1 Like

do the array size to 10^6 or 10^7
and other limits too then check

ok let me try it with bool

yes now with bool its working fine thanku…

Mark it as resolved if you have no more doubt regarding this question.thankyou

1 Like