"Charles Comstock" <cc1 / cec.wustl.edu> schrieb im Newsbeitrag
news:c278e5$c4g$1 / newsreader.wustl.edu...
> Gavin Sinclair wrote:
>
> > On Thursday, March 4, 2004, 10:04:43 PM, Gerard wrote:
> >
> >
> >>On Thu, 4 Mar 2004 19:36:35 +0900, Gavin Sinclair
> >><gsinclair / soyabean.com.au> wrote:
> >
> >
> >>>I'll add it to the 'extensions' project.
> >
> >
> >>Gavin, do you  have a URL?  Thanks.
> >
> >
> > http://extensions.rubyforge.org
> >
> > Gavin
> >
> >
> >
>
> Hey you know you could stuff prime? as a method in Integer as well.
> Just run a miller-rabin primality test.  I'll see if I can't cook up
> some code for that and send it your way, it might be another interesting
> extension to have.

IMHO it's better to have a PrimeTester class that does the checking
because for efficiency reasons I'd want to store detected prime numbers
somewhere.  Just my 0.02 EUR.

    robert