Completed Project Euler 4