Tiny program for generating Ulam Spiral and writing it as simple image file.
Currently supporting uncompressed .bmp and .ppm files.
This project has no external dependency (besides libC itself).
$ git clone https://github.com/sleeptightAnsiC/usg.git
$ cd usg
$ cc src/*.c -o usg
$ ./usg --help
- https://en.wikipedia.org/wiki/Prime_number
- https://en.wikipedia.org/wiki/List_of_prime_numbers
- https://en.wikipedia.org/wiki/Generation_of_primes
- https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
- https://en.wikipedia.org/wiki/BMP_file_format
- https://en.wikipedia.org/wiki/Netpbm
Copyright holder: https://github.com/sleeptightAnsiC
Code under this repository is licensed under permissive MIT license