Create a Python function which takes an integer and returns True or False depending on whether it is a prime number or not respectively.
Not applicable
def is_prime(n):
 if n <= 1:
 return False

 for i in range(2, n):

 if n % i == 0:
 return False

 return True