Completed Project Euler problem 42 with a 0.005s runtime