Flow controls: Loops · 11 / 26 Exercise Easy

Prime number

Objective

Develop a Python program that prompts the user to enter an integer and determine whether it is a prime number or not.

A prime number is one that is only divisible by 1 and itself, with no other divisors. The program will check whether the entered number meets this condition.

Input
7
Output
It's prime

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise