Question d’entretien chez Broadridge

Write code to identify whether number is prime or not?