Fast Enterprises interview question

Write a function print prime numbers. Write function isPrime.