Showing posts with label recursive function check prime or composite. Show all posts
Showing posts with label recursive function check prime or composite. Show all posts

Tuesday, February 25, 2014

To check whether a number is prime or composite using recursive function


In this page I have kept the concept of checking whether a number is prime or composite using recursive function.However 1 is neither prime nor composite but in this programme 1 has been shown as composite. The source code of this programme is