Pergunta de entrevista da empresa Broadridge

Write code to identify whether number is prime or not?