Pergunta de entrevista da empresa Cognizant

Program to print whether a number is prime or not?