On generating all primes less than 2^x