question recursive of function

hello, i want ask how to write a recursive version of function to determine if an input is prime.

anybody can help me..?
Why an recursive function? I think you should check if it is dividable by any number between 1 and and input.
@magni: Look at the way the question was asked, and you have the answer to "Why a recursive function" - I'd bet a lot of money on "That's his/her homework".
Topic archived. No new replies allowed.