a sieve of eratosthenes, could use work