Infosys Interview Question

Write program for prime number