Too much overhead to store list of primes in memory