LTIMindtree interview question

Write a prime number program