human
Write a function to check if the given integer is a prime number. Here is a solution in Python:
assistant
#Here is the Python program you requested.
 def prime_num(num):
  if num >=1:
   for i in range(2, num//2):
     if (num % i) == 0:
                return False
     else:
                return True
  else:
          return False