Completed problem 37, updated prime stuff