Create IT interview question

How to program a function that would print prime numbers.