PrimeQ
Usage
• PrimeQ[expr] yields True if expr is a prime number, and yields False otherwise.
Notes
• PrimeQ[-n], where n is prime, gives True. • PrimeQ[n, GaussianIntegers->True] determines whether n is a Gaussian prime. • PrimeQ[m + I n] automatically works over the Gaussian integers. • Simplify[expr Primes] can be used to try to determine whether a symbolic expression is mathematically a prime. • New in Version 1.
|