Refactored the getprimes method into "utils/primes.py"