Create IT Interview Question

How to program a function that would print prime numbers.