Problem 9

Makes use of the simple fact that a < b and c = 1000 - a - b

Originally I did this with three nested loops, and it took over 10
seconds. This method finds the answer in less than 1 second!