Primes—Wolfram Language Documentation (original) (raw)
BUILT-IN SYMBOL
Primes
represents the domain of prime numbers, as in x∈Primes.
Details
Examples
open allclose all
Basic Examples (3)
The number is a prime:
Fermat's little theorem:
Find primes satisfying an inequality:
Scope (4)
Test domain membership of a numeric expression:
Make domain membership assumptions:
Specify the default domain for Reduce and FindInstance:
TraditionalForm formatting:
Applications (2)
Wilson's theorem [more info]:
A list of twin primes:
Check:
Properties & Relations (3)
Wolfram Research (1999), Primes, Wolfram Language function, https://reference.wolfram.com/language/ref/Primes.html (updated 2017).
Text
Wolfram Research (1999), Primes, Wolfram Language function, https://reference.wolfram.com/language/ref/Primes.html (updated 2017).
CMS
Wolfram Language. 1999. "Primes." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Primes.html.
APA
Wolfram Language. (1999). Primes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Primes.html
BibTeX
@misc{reference.wolfram_2025_primes, author="Wolfram Research", title="{Primes}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Primes.html}", note=[Accessed: 13-June-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_primes, organization={Wolfram Research}, title={Primes}, year={2017}, url={https://reference.wolfram.com/language/ref/Primes.html}, note=[Accessed: 13-June-2025 ]}