This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory  /

  • Prime[ n ] gives the n prime number.
  • Prime[1] is 2.
  • On most computer systems, Prime[ n ] for n up to can be obtained quite quickly.
  • See the Mathematica book: Section 3.2.4.
  • See also Implementation NotesA.9.44.7MainBookLinkOldButtonDataA.9.44.7.
  • See also: FactorInteger, PrimeQ, PrimePi.
  • Related package: NumberTheory`NumberTheoryFunctions`.

    Further Examples

    Here is a list of the first 100 primes.