argument added: max primes