LearnPy Hub
← Loops problems
Medium

Is It Prime?

Read n ≥ 1 and print Prime or Not prime, testing divisors only up to √n with a loop.

Input

One integer.

Output

One line.

Sample 1

Input
7
Output
Prime

Sample 2

Input
1
Output
Not prime
solution.py
Output appears here
Is It Prime? · Python practice problem · LearnPy Hub