Infosys interview question

Write code to identify prime number