Last Updated: 29 Apr, 2024

Check Prime

Easy

Problem statement

Given an integer, check if it is prime or not. Return True if the number is prime, otherwise False.


Note:
No need to print anything; it has already been handled.
Input Format:
The first line contains a single integer 'n'.
Output Format:
Return True if the number 'n' is prime otherwise False.