count # primes < target without division