Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Number Theory > Prime Numbers >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions > Prime Numbers >

Prime

Prime[n]
gives the n^(th) prime number.
  • Prime automatically threads over lists.
The first 20 primes:
The billionth prime:
Plot the sequence:
Some symbolic operations can be done with Prime[n]:
TraditionalForm formatting:
Differences between the first 100 primes:
The n^(th) prime compared with an estimate:
An approximation to the zeta function:
PrimePi is effectively the inverse of Prime:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team