Infosys Interview Question

Asked to write Prime number c program