Question: starter program provided A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Write a
starter program provided

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Write a function named is_prime that takes an integer argument and returns True if the number is prime and False otherwise. (Assume that the argument is an integer greater than 1, i.e. no need to check for erroneous input.) # is-prime function definition goes here 2 3 num int (input ( "Input an integer greater than 1: ")) 4 5 if is_prime(num): 6 print(":d is a prime" .format (num)) else 8 print(":d is not a prime" .format (num))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
