Question

Write a function to check whether given number is prime?

Login to Submit

Examples

Input: 2
Output: true

Input: 5
Output: true

Input: 10
Output: false