Pedantic perhaps but you are talking 10000 numbers not 1000 :)
Nice solution.
This algorithm needs to store all the numbers in memory in the numbers object. This is ok, we are just talking about 1000 numbers, but what if we want to do that for a million? or more?