Solving wallet 2 of PEP Puzzle 6

On March 1, 2025, deminimis0 published PEP Puzzle 6, providing a single, small image as the clue for 4 distinct puzzle wallets.

A 99x99 image of the pi symbol in the center of a circle.

Wallets 1, 3, and 4 were previously solved, leaving wallet 2 as the final challenge in PEP Puzzle 6. On November 30, 2026, I used Gemini 4 Neon to orchestrate a successful solve, which neither deminimis0 nor I would have expected to be possible last year (Can AI solve puzzles?). Although the eventual solution was elementary, the search space is large and the agents required significant steering. Neon spent most of its time oscillating between mindlessly applying techniques from solved examples and theorizing ill-supported, complex relations far beyond the scope of sibling puzzles.

Although SOTA models are surprisingly competent, every puzzle I have solved thus far with AI assistance has required significant babysitting; every session which produced novel results required my familiarity with the subject matter despite the AI handling most of the work.

DateSummary
March 1, 2025PEP Puzzle 6 was announced.
September 21, 2025Prize wallet 1 was solved.
September 22, 2025Prize wallet 4 was solved.
August 12, 2026Prize wallet 3 was solved.
November 30, 2026Prize wallet 2 was solved.

Solutions

The puzzle image consists of a pi symbol surrounded by a thin circle with a diameter of 77 pixels, motivating geometric expressions with a constant of 77.

Let Dl(x) D_l(x) denote the integer formed by the first l l significant digits of x x , defined by

Dl(x)=⌊10l−1−⌊log⁡10x⌋x⌋. \begin{align*} D_l (x) = \lfloor 10^{l - 1 - \lfloor \log_{10} x \rfloor} x \rfloor. \end{align*}

The private keys for each of the 4 wallets can be written concisely, as follows.

key1=hex64(D77(π)),key2=hex64(D1(π)⋅(D77(π)−1076D1(π))),key3=hex64(B(D256(π))),key4=hex64(D77(πr2)),r=77/2, \begin{align*} \text{key}_1 &= \mathrm{hex}_{64} ( D_{77}( \pi ) ), \\ \text{key}_2 &= \mathrm{hex}_{64} ( D_1 (\pi) \cdot ( D_{77} (\pi) - 10^{76} D_1 (\pi ) ) ), \\ \text{key}_3 &= \mathrm{hex}_{64} ( B(D_{256}( \pi )) ), \\ \text{key}_4 &= \mathrm{hex}_{64} ( D_{77} ( \pi r^2 ) ), \quad r = 77/2, \end{align*}

where

B(n)=∑k=0⌊log⁡10n⌋(⌊n10k⌋ mod 2)⋅2k. \begin{align*} B(n) = \sum_{k=0}^{\lfloor \log_{10} n \rfloor} \left ( \left \lfloor \frac{n}{10^k} \right \rfloor \bmod 2 \right ) \cdot 2^k. \end{align*}

For the first prize wallet, the solution is derived by representing the first 77 digits of π \pi , 3141…2862 3141 \ldots 2862 , as 64 hexadecimal digits. The fourth prize wallet replaces π \pi with the area of a circle πr2 \pi r^2 where r=77/2 r = 77/2 is the pixel radius in the puzzle image.

The third prize wallet is a bit more complicated, which is likely why it took almost a year longer to solve. To begin, consider the first 256 digits of π \pi , 3141…5648 3141 \dots 5648 . For each digit, write 1 if it is odd, or 0 if it is even to construct a 256-bit string. This new string can be represented as 64 hexadecimal digits which forms the private key.

Finally, the second prize wallet uses a different, simple mechanism: take the first digit of π \pi , then multiply it by the next 76 76 digits of π \pi , and convert that integer into a hexadecimal value. As motivation, this is analogous to truncating π \pi after a total of 77 digits, 3.1415…2862 3.1415 \dots 2862 , and treating the decimal point as a multiplication sign.

Thank you to deminimis0 for creating the PEP Puzzles series.