Cognizant interview question

Write a program prime numbers