Inefficient eratosthenes sieve for primes < 5000