Primes

Primes

represents the domain of prime numbers, as in xPrimes.

Details

  • xPrimes evaluates only if x is a numeric quantity.
  • Simplify[exprPrimes] 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

open allclose all

Basic Examples  (3)

The number is a prime:

In[1]:=
Click for copyable input
Out[1]=

Fermat's little theorem:

In[1]:=
Click for copyable input
Out[1]=

Find primes satisfying an inequality:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Applications  (2)

Properties & Relations  (3)

See Also

Element  Simplify  PrimeQ  Prime  Integers

Tutorials

Introduced in 1999
(4.0)