def isPrime(x):
    """Returns whether or not the given number x is prime.

    A prime number is a natural number greater than 1 that cannot be formed
    by multiplying two smaller natural numbers.

    For example:
    - Calling isPrime(11) will return True
    - Calling isPrime(71) will return True
    - Calling isPrime(12) will return False
    - Calling isPrime(76) will return False
    """

    factors = []
    for i in range(1, x + 1):  # iterate over a range from 1 to x+1
        if (x % i == 0):  # if the number is divided complelety then add it to list of factors
            factors.append(i)

    length = len(factors)  # finding out length of factors using len function
    if (length == 2):  # checking for number of factors as prime number just have two factors
        return True
    else:
        return False