euler problem 47 Distinct primes factors