Improve the space performance of the sieve of Eratosthenes

Reduce the size of Eratosthenes by a factor of 64 by using a
bit-array to encode the flags.