Inputs a number and checks whether it is prime or not
