惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog

Hacker News

GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Bonsai 1-bit WebGPU - a Hugging Face Space by webml-community Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line
GitHub - Robert-Cunningham/pozzo: A (very) fast lucky num...
2026-06-09 · via Hacker News

Pozzo tests large integers for luckiness. It is dramatically more efficient than its predecessors, increasing the number of values searched for several OEIS sequences by a factor of between 1,000 and 100,000,000.

What is a Lucky Number?

Lucky numbers are produced by a sieve. From the OEIS Wiki:

Start with a sequence of positive odd numbers:

1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, ...

The first nonunit survivor is 3, so strike every third value in this list:

1, 3, [5], 7, 9, [11], 13, 15, [17], 19, 21, [23], 25, 27, [29], 31, ...

The next unused survivor is 7, so strike every seventh value of the new list.

1, 3, 7, 9, 13, 15, [19], 21, 25, 27, 31, 33, 37, [39], 43, ...

The values that are never struck out are the lucky numbers:

1, 3, 7, 9, 13, 15, 21, 25, 31, ...

Lucky numbers are of some interest because they share several statistical properties with primes.

Main Idea

To check k numbers for luckiness, we maintain a Fenwick tree over k bits, where each node counts the number of set bits in its range. By traversing this tree, we can very quickly look up and unset the ith set bit.

Memory constrains the size of the sieve. The sieve requires two bits per odd integer (one bit for the bitset, and one amortized bit for the Fenwick tree). This averages out to one integer per bit of RAM.

Note that this does not bound the maximum size of the numbers we can prove lucky; we can prove luckiness of candidates much higher than the sieve limit, with the following algorithm:

  1. Start each candidate at rank = (n + 1) / 2, the rank among odd numbers after deleting evens.
  2. For each lucky deletion factor l, reject when rank % l == 0.
  3. Otherwise update rank -= rank / l.
  4. Once rank < l, the candidate has survived all future deletions and is lucky.

Motivation

And what hackathon project are you presenting today?

The integer 4,398,046,511,103.

After spending several hackathons making things like "Uber for dogs with hearing loss", I decided that my next project would be an off-the-shelf integer. It was a very Duchamp era of my life.

I wanted to extend an OEIS sequence, but which one? Ideally one where the values are rare enough to be exciting, but not so rare that we can't find a new one. Lucky numbers are distributed like $\log^{-1}(p)$, so sequences involving intersections with lucky numbers make reasonable targets. For example, A057613 (lucky numbers of the form 2^k - 1) is very promising.

Results

Bold values are newly discovered.

Lucky Repdigits

1, 3, 7, 9, 33, 99, 111, 777, 9999, 33333, 55555, 111111, 777777, 7777777, 55555555, 777777777777, 9999999999999.

A031882: Lucky decimal repdigits.

Old bound: a(16) > 10^9

New bound: a(18) >= 777777777777777

Search space expanded by a factor of $8 * 10^5$.

Lucky Mersennes

1, 3, 7, 15, 31, 63, 127, 511, 1023, 4095, 8191, 131071, 524287, 2097151, 4194303, 8388607, 33554431, 67108863, 8589934591, 68719476735, 1099511627775, 4398046511103.

A057613: Lucky numbers of the form 2^k - 1.

Old bound: a(20) >= 2^34 - 1

New bound: a(23) >= 2^49 - 1

Search space expanded by a factor of $3 * 10^4$.

Lucky Mersennes With Prime Exponent

3, 7, 31, 127, 8191, 131071, 524287, 8388607.

A057612: Lucky numbers of the form 2^p - 1 for prime p.

Old bound: a(9) > 2^31 - 1

New bound: a(9) >= 2^59 - 1

Search space expanded by a factor of $3 * 10^8$.

Lucky Fibonacci Numbers

1, 3, 13, 21, 1597, 6765, 75025, 32951280099.

A057589: Lucky Fibonacci numbers.

Old bound: a(8) >= 12586269025

New bound: a(9) >= 72723460248141

Search space expanded by a factor of $6 * 10^3$.

Lucky Lucas Numbers

1, 3, 7, 3571, 9349, 710647, 12752043.

A306632: Lucky Lucas numbers.

Old bound: a(8) >= 10^9

New bound: a(8) >= 100501350283429

Search space expanded by a factor of $1 * 10^5$.

Lucky Tetranacci Numbers

1, 15, 10671, 274423830033.

A140285: Lucky tetranacci numbers.

Old bound: a(4) >= 10312882481

New bound: a(5) >= 194314552299285

Search space expanded by a factor of $2 * 10^4$.

Lucky Consecutive-Digit Numbers

21, 43, 67, 87, 321, 4321, 4567, 6789, 78901, 432109, 9012345, 67890123, 109876543, 123456789, 6543210987, 8901234567, 9876543210987.

A118569: Lucky numbers with ascending or descending cyclic consecutive decimal digits.

Old bound: a(17) >= 10^10

New bound: a(18) >= 123456789012345

Search space expanded by a factor of $1 * 10^4$.

Run

The reported run took about 12 hours on a machine with 128GB of RAM. The sieve covers approximately $2^{40}$ integers. The log can be found in pozzo.log.

Usage

cargo test
cargo run --release -- --memory-mib 114688

What's with the name?

From Waiting for Godot.

Credit

I started this in 2019 and would certainly not have finished it without 2026-era coding agents, to whom most credit is due.