Prime number determination using sieve of Eratosthenes.