Solution to #10. Same sieve from 8 and 3.