Cognizant Interview Question

write a program to print if number is prime or not.