Check if n is a prime

Using a sieve algo. Going to use as part of a larger solution of prime factorization.