def isPrime(num):
    """
    Tell whether the given number is a prime number
    """
    if num < 1:
        return False
    if num == 1:
        return True
    for i in range(2, int(num / 2) + 1):
        if num % i == 0:
            return False
    return True