Solved problem 52 (permuted multiples).