PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Assumptions and Domains
>
Built-in
Mathematica
Symbol
Simplifying with Assumptions
Using Assumptions
Tutorials »
|
Element
Simplify
PrimeQ
Prime
Integers
See Also »
|
Assumptions and Domains
Number Recognition
Number Theory
Prime Numbers
More About »
Primes
Primes
represents the domain of prime numbers, as in
x
Primes
.
MORE INFORMATION
x
Primes
evaluates only if
x
is a numeric quantity.
Simplify
[
expr
Primes]
can be used to try to determine whether an expression corresponds to a prime number.
The domain of primes is taken to be a subset of the domain of integers.
PrimeQ
[
expr
]
returns
False
unless
expr
explicitly has head
Integer
.
Primes
is output in
TraditionalForm
as
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
The number
is a prime:
In[1]:=
Out[1]=
Fermat's little theorem:
In[1]:=
Out[1]=
Find primes satisfying an inequality:
In[1]:=
Out[1]=
Scope
(4)
Applications
(2)
Properties & Relations
(3)
SEE ALSO
Element
Simplify
PrimeQ
Prime
Integers
TUTORIALS
Simplifying with Assumptions
Using Assumptions
MORE ABOUT
Assumptions and Domains
Number Recognition
Number Theory
Prime Numbers
New in 4
© 2008 Wolfram Research, Inc.