Write a function to judge whether a number is a prime number.
Implement is_prime(n) and return True if n has exactly two positive divisors, otherwise return False. Treat all integers less than 2 as non-prime. The input is a single integer, and the output is a Boolean.
def is_prime(n):