Improved Project Euler 461 solution.