This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)



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

FilledSmallSquarePrimeQ[1] gives False.

FilledSmallSquarePrimeQ[-n], where n is prime, gives True.

FilledSmallSquarePrimeQ[n, GaussianIntegers->True] determines whether n is a Gaussian prime.

FilledSmallSquareSimplify[expr Primes] can be used to try to determine whether a symbolic expression is mathematically a prime.

FilledSmallSquare See The Mathematica Book: Section 2.3.5, Section 3.1.1 and Section 3.2.4.

FilledSmallSquare Implementation Notes: see section A.9.4.

FilledSmallSquare See also: FactorInteger, Primes.

FilledSmallSquare Related package: NumberTheory`PrimeQ`.

Further Examples