Distinct Prime Factors problem 47 (unsolved, need to make it faster)