Generates a list of primes.

If you can make this faster, let me know.