Prime or not
easyMaths and loops10 XP
Return whether n is a prime number: greater than 1 and divisible only by 1 and itself.
Examples
- Input: n = 7Output: true
- Input: n = 9Output: false
Examples use JSON: true/false/null are True/False/None in Python.