Question: Write a Python program that reads a number and prints YES if the number is prime, in other case it must print NO. (A prime
Write a Python program that reads a number and prints YES if the number is prime, in other case it must print NO. (A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers.)
Sample Input.
7
Sample Output
YES
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
