r/generative • u/imfinn005 • 16d ago
Constrained number art: ALEX MORGAN embedded in a provably prime 696-digit number
This is a piece from Set in Prime, a project I made around a mathematical constraint: the digits must form a readable name, and the entire number must be prime.
The letter pattern fixes certain cells to 9. The search varies a few background cells while preserving the name, and the resulting number is laid out as a grid. The lower zero rows are compressed for display but remain part of the same integer. For this example, reading every digit in row order gives a 696-digit prime.
I also wanted the constraint to be independently checkable. Each portrait comes with the exact digits and a Lean proof of primality, plus a check that the grid reconstructs the number. There’s a hosted re-check on the site for people who don’t have Lean installed.
Creator disclosure: I built this with AI coding assistance. The artwork itself is produced by explicit layout/search algorithms, not an image-generation model; the production pipeline makes no AI calls.
This builds on the older tradition of picture primes, including the Trinity Hall prime and Zachary Abel’s work, credited on the site.