Skip to content

Fethbita/BMP_to_Prime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMP-to-Prime

Creates a prime number from a bmp

Getting Started

To compile: make

Prerequisites

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

Installing

To compile run

make

Running

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.

About

Creates a prime number from a bmp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published