Sujet : Re: OT: Re: Sieve of Erastosthenes optimized to the max
De : andreytarasevich (at) *nospam* hotmail.com (Andrey Tarasevich)
Groupes : comp.lang.c++Date : 28. Sep 2024, 23:21:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd9vha$1dva9$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
User-Agent : Mozilla Thunderbird
On 08/22/24 5:00 PM, red floyd wrote:
You can skip multiples of three, by starting with 7, and then
alternately adding 4 then 2.
... by starting with 5 and then alternately adding 2 then 4, if you want to be follow the general idea of wheel factorization.
Or by starting with 7 and then adding cyclically { 4, 2, 4, 2, 4, 6, 2, 6 }.
And so forth...
-- Best regards,Andrey