Teradata Interview Question

Prime numbers using recursion