Solved problem 47 (distinct prime factors).