Sieve of Atkins ported from http://compoasso.free.fr/primelistweb/ressource/Atkin3.java