question recursive of function

May 1, 2010 at 8:36am
hello, i want ask how to write a recursive version of function to determine if an input is prime.

anybody can help me..?
May 1, 2010 at 9:10am
Why an recursive function? I think you should check if it is dividable by any number between 1 and and input.
May 1, 2010 at 10:29am
@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.