Prime Number Checker

Easy
38
1
66.6% Acceptance

Your task is to develop a function is_prime_number in Python that checks if a given number is a prime number. The function should return True if the number is prime, and False otherwise.

Function Requirements

  • Name: is_prime_number
  • Input: A single number (can be positive, negative, or a floating point number).
  • Output: True if the number is a prime number, False otherwise.

Examples

  1. is_prime_number(5) should return True, as 5 is a prime number.
  2. is_prime_number(4) should return False, as 4 is not a prime number.

Key Points

  • Ensure your function handles a variety of cases, including negative numbers and non-integer values, as they will be part of the challenges.
  • Your implementation should efficiently determine the primality of a number.

Good luck, and happy coding!