Infosys Interview Question

Write code to identify prime number