fix logic to not include results for 1,000.

-- the for loop was originally including 1,000 in the results, but I
re-read the problem, and it only asks for results *below* 1,000.