Allows you to generate a list of all primes for a given number.