Project Euler: Problem 29: Distinct Powers: Brute Force Solution