Alternate approach to Sieve of Eratosthenes.