Board index » cppbuilder » prime numbers
bill
CBuilder Developer |
bill
CBuilder Developer |
prime numbers2006-10-05 11:12:28 PM cppbuilder31 Hi all, I was wondering is there is a function in c++ builder that can return prime numbers?maybe i could give 2 numbers and a function could return all prime numbers between those 2?if there isnt a premade function can someone plz suggest a way of doing it? thank you in advance. |
Bruce Salzman
CBuilder Developer |
2006-10-06 12:02:32 AM
Re:prime numbers
"bill" < XXXX@XXXXX.COM >wrote in message
Hi all, I was wondering is there is a function in c++ builder that can return prime numbers?maybe i could give 2 numbers and a function could return all prime numbers between those 2?if there isnt a premade function can someone plz suggest a way of doing it? thank you in advance. Perhaps something like this may help you : en.wikipedia.org/wiki/Sieve_of_Atkin -- Bruce |