Make code for Math.primes more readable