completed search-for-primes