Working sieve and prime checker function.