Generates PNG files representing Ulam Spirals of a desired size. Has been tested with Ulam Spirals with edges up to 35,555. Theoretically, it can support sizes up to 65,535.
Unfortunately, most image hosting websites compress images. On an image where each pixel represents important data, compression damages the valuable information. Therefore, I have made the output available to download. Click here to download the file (~83MB)
Generate the output file for image processing.
- Compile charUlam.c
gcc -o charUlam charUlam.c Array.*
- Run charUlam.c for a desired (odd) edge size
charUlam 5001
- Run createSpiral.py for the same size
python createSpiral.py 5001
