Hello Peer, I was bored so I implemented it with a mutable HiPE bitarray. https://gist.github.com/nox/6073337 Regards, -- Anthony Ramine Le 24 juil. 2013 à 17:56, Peer Stritzinger a écrit : > If you really looking for a fast sieve try http://en.wikipedia.org/wiki/Sieve_of_Atkin