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).
EITHER, with GNU/make on POSIX (Linux, MacOSX, MinGW, etc):
$ git clone https://github.com/sleeptightAnsiC/usg.git
$ cd usg
$ make
OR, with any C99-capable compiler:
$ cc src/*.c
- 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/X license