Your question is Prime Number Program. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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):