Related: https://en.wikipedia.org/wiki/Sieve_of_Sundaram
Very easy to implement and much faster than even sieve of Atkin with a complexity of O((n log n)/12)
Very easy to implement and much faster than even sieve of Atkin with a complexity of O((n log n)/12)
No comments yet.