Pregunta de entrevista de Infosys

Write a code for checking prime numbers?