To check whether the number is prime or not