LTIMindtree Interview Question

Write a prime number program