Refactor to improve readability
Remove unnecessary condition in primes_up_to
Refactor to improve readability
Refactor to improve readability