My implementation of a simple sieve