Pregunta de entrevista de Capgemini

How to write the code for prime numbers