itp is a command line tool to generate large prime numbers which look like any arbitrary image.
go install laptudirm.com/x/itp@latest
itp [image file]
itp finds primes which look similar to an image using the following steps:
- step 1: Convert the image into a number. Brightness chart is "7772299408".
- step 2: If last digit is even or 5 change it, otherwise number can't be a prime.
- step 3: If first digit is 0 change it. No redundant leading zeros allowed
- step 4: Check if number is prime. If it is a prime, print it and exit.
- step 5: If number is not prime, switch one of the digits with a similar one.
- step 6: Goto step 4.