On Mon, Jun 14, 2010 at 7:16 AM, Red Roo <redr...@yahoo.com> wrote: > Looking for a recommended package that handles prime number computations. >
The gmp package (http://crantastic.org/packages/gmp) has some good tools for prime numbers. I've used the is.prime function before; it's stochastic (in the sense that it gives the right answer with a high probability), but very fast for large numbers. I'm pretty sure there are exact functions for testing and generating primes too. # David Smith -- David M Smith <da...@revolutionanalytics.com> VP of Marketing, Revolution Analytics http://blog.revolutionanalytics.com Tel: +1 (650) 330-0553 x205 (Palo Alto, CA, USA) [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.