Write a program for prime number verification.
Implement is_prime(n) to return True if n is prime and False otherwise. The input is one integer, and values less than 2 must be treated as non-prime.
is_prime(n)
True
n
False
def is_prime(n):
Your question is Prime Number Verification Program. Start with the requirements in the Question tab.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.