Project Euler 25 work