Write a function to check whether given number is prime?
Login to Submit
Input: 2 Output: true Input: 5 Output: true Input: 10 Output: false