Mathematica 9 is now available

Prime

Usage

Prime[n] gives the n prime number.


Notes

Prime[1] is 2.
• On most computer systems, Prime[n] for n up to  can be obtained quite quickly.
• See Section 3.2.5.
• Implementation notes: see Section A.9.4.
• See also: FactorInteger, PrimeQ, PrimePi, Primes.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.