Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   to find a series of prime nos in between 1 to 500 by using recursive function (http://www.go4expert.com/forums/series-prime-nos-1-500-using-recursive-t7007/)

 deepak.mobisy 24Oct2007 22:16

to find a series of prime nos in between 1 to 500 by using recursive function

ya man can any buddy help me to solve this problem..
to find out prime nos from 1 to 500 by using recursive function in c.

 shabbir 25Oct2007 00:10

Re: to find a series of prime nos in between 1 to 500 by using recursive function

Check if no is divisible by 1 till the sqrt of the number.
If yes not a prime
else prime

Now you can recurse through the check or can recurse it through the number 1 to 500

 deepak.mobisy 25Oct2007 11:15

Re: to find a series of prime nos in between 1 to 500 by using recursive function

if u have a time then can u help me by puttong the code on y mail....
ya i had tried for this ....
but the result was unexpeceted..
actually that prints a prime check only..
ok thanks for giving me the information..

 All times are GMT +5.5. The time now is 12:03.