O(N) search for primes with boolean array