Added is_prime and list_primes functions