Log in
← All problems

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

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 6 hidden tests.