Cognizant interview question

Write a program to find prime numbers ina given range.