How to master sieve based algorithms??

How do programmer come accross very nice sieve good algorithms like this solution is very easy but it never come to my mind.

How to master this kind of sieve techniques, help me.

1 Like

which solution exactly are u talking about…??

These are handful of problems which uses sieve and other elementry concepts so practice what i can say


https://discuss.codechef.com/tags/sieve%2Bdp/

These are handful of problems which uses sieve and other elementry concepts so practice what i can say


https://discuss.codechef.com/tags/sieve%2Bdp/

@va1ts7_100

obviously the sieve based solution.