Cognizant Interview Question

Write a program prime numbers