MersennePrimes
The Mersenne primes : primes of the form .
MersennePrimesthe primes for a prime exponent , an indexed collection of open infinitude -- only finitely many are known at any time.Details
- A lazy indexed collection; whether there are infinitely many is the open Lenstra-Pomerance-Wagstaff conjecture, so . OEIS A000668.
- unranks from a table of exponents verified by the Lucas-Lehmer test, not a search -- the known terms grow to tens of millions of digits, so past the point a value would exceed what a numeric collection element can represent exactly (), answers rather than hang looking for more: (), and is (the 9th, , exists and is known, but doesn't fit).
- Membership goes through Element: is true, is false (, and 6 isn't even prime).
Enumeration
Examples
1 more kept as data, checked against the oracles See also: Count, At, Element, PrimeNumbers, FibonacciPrimes