Solves P7 using sieve