Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

PrimeQ

PrimeQ[expr]
yields True if expr is a prime number, and yields False otherwise.

Details and OptionsDetails and Options

Introduced in 1988
(1.0)
| Updated in 2003
(5.0)