code: def isprime(n):
      """Returns True if n is prime and False otherwise"""
      if not isinstance(n, int):
          raise TypeError(
              "argument passed to is_prime is not of 'int' type"
          )
      if n < 2:
          return False
      if n == 2:
          return True
      max = int(math.ceil(math.sqrt(n)))
      i = 2
      while i <= max:
          if n % i == 0:
              return False
          i += 1
      return True
  
imports: import math
  import sys
  import ppft
label_desc: Use image node_id 1 for calling a global function with example usage: isprime(n) and returns: True, False, True, False