Rewrite Math.primes to make it much more efficient
Make Math.primes a lot more readable (and possibly a little faster)
Update the name of the parameter for Math.primes