input: 
  from typing import Union
  
  def is_prime(number: Union[int, float]) -> bool:
      """
      Determine if the given number is a prime number.
  
      >>> is_prime(17)
      True
      >>> is_prime(15)
      False
      """
      if not isinstance(number, int) or number <= 1:
          return False
      for i in range(2, number):
          if number % i == 0:
              return False
      return True
  
output:     if number != int(number):
          return False
      number = int(number)
      if number == 2:
          return True
      if number % 2 == 0:
          return False
      for i in range(3, int(number**0.5) + 1, 2):
          if number % i == 0:
              return False
      return True