How to Use
Enter n or test a value:
- Test: Is n lucky?
- Sequence: Lucky numbers up to n
- Count: How many lucky ≤ n
The Sieve
1. Start: 1,3,5,7,9,11,13,15,17,19,21,...
2. Second number is 3, remove every 3rd: 1,3,7,9,13,15,19,21,25,...
3. Third number is 7, remove every 7th: 1,3,7,9,13,15,21,25,31,...
4. Continue with each surviving number as the sieve factor.
Lucky vs Primes
Amazingly similar! Both have density ~1/ln(n). Both have infinitely many 'twins' (conjectured). Both satisfy a Goldbach-like conjecture. Yet they're defined completely differently — primes by multiplication, luckies by position.
Step-by-Step Instructions
- 1Enter number.
- 2Run sieve.
- 3Check membership.
- 4Count luckies.
- 5Compare to primes.