Problems
easyCheck Prime Number
2 Koda Coins

Check Prime Number

easy2s limit💾 64 MB

Description

Given an integer N, check whether it is a prime number or not. A prime number is a number strictly greater than 1 that has exactly two divisors: 1 and itself.


Input Format

  • A single integer N.

  • Output Format

  • Print true if the number is prime, else false.

  • Constraints

  • 1 <= N <= 10^9