Re: [R] Prime Numbers Pkgs - Schoolmath is broken

From: David Smith <>
Date: Mon, 14 Jun 2010 10:26:05 -0700

On Mon, Jun 14, 2010 at 7:16 AM, Red Roo <> wrote:

> Looking for a recommended package that handles prime number computations.

The gmp package ( has some good tools for prime numbers. I've used the 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 <>
VP of Marketing, Revolution Analytics
Tel: +1 (650) 330-0553 x205 (Palo Alto, CA, USA)

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 14 Jun 2010 - 17:32:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jun 2010 - 18:10:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive