Generates a prime number from an image. Based on a fantastic writeup by John May.
I got completely sidetracked by a post on John's BlueSky profile and had no clue how in the world he had generated this number. He very kindly linked me to his writeup.
Hi Bluesky, I work at Maplesoft on the mathematical algorithms team. Mostly I am responsible for the care and feeding of the algorithms but they also make me muck out the cages. I should post more about math. Here's the Maple logo, but it's a ~20k digit prime number:
— John May (@3j0hn.bsky.social) November 20, 2024 at 2:52 PM
[image or embed]
The program takes in any png and finds a prime number where every pixel is represented by a digit of that prime number where 1s are while pixels. The project files contain a sample image and example.