Project Euler 001 solve