Creates a prime number from a bmp
To compile: make
To build the project you need the GMP library. https://gmplib.org/manual/Installing-GMP.html
Download the latest release of GMP from: https://gmplib.org/ as tar.xz.
Extract it via
tar -xf gmp-*.*.*.tar.xz
cd to new folder
cd gmp-*.*.*
./configure
make
sudo make install
make check
To compile run
make
To run, you need a bmp 24 bit BMP 4.0 file. It is preferred that it has 2 colors in it, white and any other color of your choice.
./bmp_to_prime file.bmp outfile.html
will give you an html file containing your prime number. BMP files are recommended to be under 100x100, in my own experience 130x140 took a long time.