Completed Project Euler problem 37 with a ~0.84s runtime