Making Problem 58 faster with the help from the forums