as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a program that returns 'true' when a given number is a prime number.
user
"""
create a program that returns 'true' when a given number is a prime number.
"""
def is_prime(num):
    # edge case 
    if num == 1:
        return false
    # check from 2 to n-1 
    for i in range(2, num):
        if (num % i) == 0:
            return false
    return true
    
if __name__ == '__main__':
    num = int(input())
    print(is_prime(num))
assistant