Project Euler 47 - Distinct Prime Factors

Official link: https://projecteuler.net/problem=47