Project Euler #47: Distinct primes factors