Ah, that's how to use the sieve on problem 7