Looking for a recommended package that handles prime number computations. Tried the following unsuccessfully: primeFactors() in the R.basic package failed to install. primes() and primlist are broken in Schoolmath pkg on CRAN. My analysis can be found here http://j.mp/9BNI9q Not sure what the procedure is for getting things fixed, so I've cross-posted to r-dev as well. --njg ________________________________________________________________________ TAKING THE PITH OUT OF PERFORMANCE http://perfdynamics.blogspot.com/ Follow me on Twitter http://twitter.com/DrQz PERFORMANCE DYNAMICS COMPANY http://www.perfdynamics.com/
On Mon, 2010-06-14 at 07:16 -0700, Red Roo wrote:> Looking for a recommended package that handles prime number computations. > > Tried the following unsuccessfully: > primeFactors() in the R.basic package failed to install. > > primes() and primlist are broken in Schoolmath pkg on CRAN. > My analysis can be found here http://j.mp/9BNI9q > Not sure what the procedure is for getting things fixed, so I've > cross-posted to r-dev as well.Neither place is correct. This has *nothing* to do with R. Address bug reports directly to the package maintainer, details of which can be found here: http://cran.r-project.org/web/packages/schoolmath/index.html which is what is requested in the posting guide... HTH G> --njg > ________________________________________________________________________ > TAKING THE PITH OUT OF PERFORMANCE http://perfdynamics.blogspot.com/ > Follow me on Twitter http://twitter.com/DrQz > PERFORMANCE DYNAMICS COMPANY http://www.perfdynamics.com/ > > ______________________________________________ > R-help at 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.-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
On Mon, Jun 14, 2010 at 7:16 AM, Red Roo <redrooz@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 <david@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]]
Gavin Simpson wrote:> On Mon, 2010-06-14 at 07:16 -0700, Red Roo wrote:....>> primes() and primlist are broken in Schoolmath pkg on CRAN. >> My analysis can be found here http://j.mp/9BNI9q >> Not sure what the procedure is for getting things fixed, so I've >> cross-posted to r-dev as well. > > Neither place is correct. This has *nothing* to do with R. Address bug > reports directly to the package maintainer, details of which can be > found here: > > http://cran.r-project.org/web/packages/schoolmath/index.html > > which is what is requested in the posting guide...Hmm, well... yes, but: It could be argued that we are a little too closed to discussing items outside of base R. There is something to be said for allowing people to point out to us that we do have a package on CRAN that claims that 133 is a prime! Of course it might be considered more polite first to tell the package maintainder that he has egg on his face... -pd -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com