user
Write a Python function to determine if a number is a prime.
Response:
assistant
def is_prime(n):
    if n <= 1:
        return False
    else:
        for i in range(2,n):
            if n % i == 0:
                return False
        return True