Board index » cppbuilder » prime numbers

prime numbers


2006-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.
 
 

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