Create a Python program to detect if a number is a prime number.
No input.
def is_prime(x):
    if x < 2:
        return False
    
    for i in range(2, x):
        if x % i == 0:
            return False
    return True