Well, you know that a prime number is a number that has exactly 2 factors, 1 and itself. Therefore, it would save a lot of time if you just dealt with odd numbers (and the number 2) - that halves the time spent looking for prime numbers to start with, and work from there.
Alternatively, you can use the Sieve of Eratosthenes (if you dont know what that is, look it up). Would be a bit of work writing 1000 numbers, but there you go. With a computer program it would be easy enough. And no, I'm not doing it for you.
Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester