Concurrently counting prime numbers