Function to check if a number is prime
The number to check
boolean - Returns true if the number is prime, false otherwise
Function to check if a number is prime