primes (scala)