~fmac/f292

C implementation of the "Prime-Representing Constant"
9f6a6c18 — Francesco Camuffo 4 months ago
Rename README -> README.md
b89b4e70 — Francesco Camuffo 4 months ago
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~fmac/f292
read/write
git@git.sr.ht:~fmac/f292

You can also use your local clone with git send-email.

#f292

C implementation of the Prime-Representing Constant (A function that represents all primes). Also knows as 2.920050977316134712092562917112019.


Uses GMP to handle big floating point numbers.


#Build

gcc main.c -lgmp -o f292
./f292

#Usage

f292 [-n <count>] [-p <precision>]

Options:

    -n  number of primes to generate

    -p  number of bits of precision to be set with mpf_set_default_prec