LuckyNumbers
The lucky numbers -- survivors of Ulam's positional sieve -- as a lazy indexed collection.
OEIS
A000959LuckyNumbersthe survivors of Ulam's sieve, an infinite indexed collection.Details
- A lazy indexed collection: , and unranks the -th by running the sieve out far enough -- start from the odd numbers, then repeatedly take the smallest surviving number past as a step and delete every step-th survivor, until enough terms remain.
- OEIS A000959. Despite the name, luckiness has nothing to do with primality; the sieve's mechanics happen to leave a prime-like density behind, a coincidence number theorists still find useful for testing conjectures like a lucky-number Goldbach analogue.
- Membership goes through Element: is true, is false ( is sieved out at the step- pass).
Enumeration
Examples
1 more kept as data, checked against the oraclesAbout
| Examples | 1 |
|---|---|
| Crosswalk | OEIS |
See also: Count, At, Element, PrimeNumbers