Skip to content

Primes ​

The set of prime numbers, a constant compute-engine declares; it answers membership, not position.

✓ checked against that system · ! checked, with disagreements (hover a chip)Fungrim entry04427bWolfram LanguagePrimes✓
Primes: set<integer>a constant, as compute-engine declares it
Typed signatures
TypePackageApplies
set<integer>compute-enginealways

Domain: Compute engine

Details
  • Membership goes through Element: Element(11,Primes)Element(11, Primes) is true, Element(9,Primes)Element(9, Primes) is false.
  • A set has no order, so At(Primes,k)At(Primes, k) and Take(Primes,k)Take(Primes, k) don't apply. PrimeNumbers is the same primes as an indexed collection, and NthPrime is the kk-th one.

Examples

Properties #
live ↗
In11∈P11∈\mathbb{P}OutTrue\mathrm{True}
live ↗
In9∈P9∈\mathbb{P}OutFalse\mathrm{False}
About
Examples2
Checked againstWolfram Language 2 agree
CrosswalkFungrim entryWolfram Language

See also: PrimeNumbers, Element, NthPrime, NextPrime