Prime sieve in c++

I have gone through the lecture on prime sieve 4-5 times but couldn’t understand anything. Can anyone of you please explain me the concept of prime sieve?

Hello @Tiwary725,

Refer to this link: https://www.geeksforgeeks.org/sieve-of-eratosthenes/
There is a video also attached in this post.

Let me know if you still face any issue.