PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
Mathematica Personal Grid Edition
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Prime Numbers
>
Built-in
Mathematica
Symbol
Integer and Number Theoretic Functions
Tutorials »
|
NextPrime
RandomPrime
FactorInteger
PrimeQ
PrimePi
Primes
See Also »
|
Cryptographic Number Theory
Mathematical Functions
Number Theoretic Functions
Number Theory
Prime Numbers
More About »
Prime
Prime
[
n
]
gives the
prime number.
MORE INFORMATION
Prime
[1]
is 2.
Prime
automatically threads over lists.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
The first 20 primes:
In[1]:=
Out[1]=
The billionth prime:
In[1]:=
Out[1]=
Scope
(2)
Applications
(4)
Properties & Relations
(1)
SEE ALSO
NextPrime
RandomPrime
FactorInteger
PrimeQ
PrimePi
Primes
TUTORIALS
Integer and Number Theoretic Functions
RELATED LINKS
Implementation notes: Numerical and Related Functions
MathWorld
The Wolfram Functions Site
MORE ABOUT
Cryptographic Number Theory
Mathematical Functions
Number Theoretic Functions
Number Theory
Prime Numbers
New in 1
© 2008 Wolfram Research, Inc.