Write a Python program to check whether a number is prime.
Asked in the Technical interview stage. Described as 'prime number'.
Implement is_prime(n), which accepts an integer and returns True if it has exactly two positive divisors, otherwise False.
n.def is_prime(n):