Cognizant Interview Question

Program to print whether a number is prime or not?