Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions >

PrimeQ

PrimeQ[expr]
yields True if expr is a prime number, and yields False otherwise.
  • PrimeQ[m+In] automatically works over the Gaussian integers.
  • Simplify[exprElementPrimes] can be used to try to determine whether a symbolic expression is mathematically a prime.
New in 1 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team