How to check if the given number is a prime number in Python

Python
🤖 Code Explanation
print(is_prime(11)) # True
print(is_prime(-10)) # False
This function returns True if the number is a prime number, False if not.

More problems solved in Python


















