Domanda di colloquio di Broadridge

Write code to identify whether number is prime or not?