Added Check For Prime Numbers

Added a method to check if number is prime. It uses a square root for an efficient implementation to check if a number is prime. As usual, 1 is NOT prime.