Created a function for evaluating if a number is prime