Fix output of primes