Pregunta de entrevista de Create IT

How to program a function that would print prime numbers.