Fix problem 70 to run 4x faster by terminating early