Completed Project Euler problem 56 with a ~0.54s runtime