Question 8010
All terms of what? I see no terms. Expand on the question, please.
(Of course, if you mean to find all integers that have factors other than themselves and 1, which would leave only primes, Google "sieve of Eratosthenes" and read all about it.)