To check whether a given number is prime or not