Check if a Number is Prime