Write the following code in python 3
A prime number is a number that is only evenly divisible by itself and 1.
Write a boolean function named is_prime which takes an integer as an argument and returns true if the argument is a prime number, or false otherwise. Use the function in a program that prompts the user to enter the number then displays a message indicating whether the number is prime.

Q&A Education