Write a function that determines whether a given integer is prime. A prime number is an integer greater than 1 that has exactly two positive divisors: 1 and itself.
Implement is_prime(n) where n is an integer. Return True if n is prime, otherwise return False.
def is_prime(n):