Infosys interview question

Asked to write a program to find prime numbers