ALTEN Interview Question

Prime numbers, write a function.