Write a program to check number is prime or not