← Problem book: Python
Lesson 48 of 96 · 15 XP
Prime number
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given n (n ≥ 2). Print YES if the number is prime (divisible only by 1 and itself), otherwise NO.
Example
Input:
7
Output:
YES
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.