Infosys Interview Question

Draw a flowchart to generate a prime number.