first attempt at prime sieve, check problem 10