Sieve of Eratosthenes implementation

Trying to achieve achieve a time between 2s-5s for a difference of 5,000,000