Define the function is_prime(n)
.
n
is number that the function is_prime
takes as a parameter.
The function is_prime
return True
if n
is a prime number, False
otherwise. Such as:
>>> from solution import is_prime
>>> is_prime(1)
False
>>> is_prime(2)
True
>>> is_prime(3)
True
>>> is_prime(4)
False
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts: