Teradata interview question

Prime numbers using recursion