write a C++ program to check whether the given number is prime or not
Answers
Answered by
0
Answer:
Given a positive integer N. The task is to write a Python program to check if the number is prime or not.
Definition: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are {2, 3, 5, 7, 11, ….}.
Input: n = 11
Output: true
Input: n = 15
Output: false
Input: n = 1
Output: false
Similar questions