Infosys Interview Question

To write the Prime Number Program