Prime numbers less than 1000: http://www.factmonster.com/math/numbers/prime.html
Prime numbers less than 10000: http://aleph0.clarku.edu/~djoyce/numbers/primes.html
The answer to your question is the number of items in the second list minus the number of items in the first list. Fortunately, both of these lists are arranged in rows and columns, so it should be fairly simple to count the number of elements in each.