Cognizant Interview Question

Program to find a number is prime or not