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 to accept user input and determine if the input is a prime number
user
def check_prime(num): 
  
  # check for negative or zero input 
  if num <= 0: 
    return false
  
  # check for 1  
  if num == 1: 
    return false
  
  # check if the number is divisible by any number between 2 and n-1  
  for i in range(2, num): 
    if num % i == 0: 
      return false
  
  # if there is no divisor, the number is prime  
  return true
assistant