Write a JS function to check if a number is prime (only wholly divisible by itself and one). The input comes as a single number argument.
Examples:
Input: 81
Output: false
Input: 7
Output: true
Input: 8
Output: false
The output should be the return value of your function. Return true for prime number and false otherwise.