How to master sieve based algorithms??

divisors
precomputation
sieve

#1

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.


#2

which solution exactly are u talking about…??


#3

These are handful of problems which uses sieve and other elementry concepts so practice what i can say
https://discuss.codechef.com/tags/sieve/
https://discuss.codechef.com/tags/sieve%2Bdp/
https://discuss.codechef.com/tags/sieve_and_dp/


#4

These are handful of problems which uses sieve and other elementry concepts so practice what i can say
https://discuss.codechef.com/tags/sieve/
https://discuss.codechef.com/tags/sieve%2Bdp/
https://discuss.codechef.com/tags/sieve_and_dp/


#5

@va1ts7_100

obviously the sieve based solution.