~fmac/f292

ref: b89b4e70fdb3d4bca2b32c42df0623f16f0e8020 f292/README -rw-r--r-- 559 bytes
b89b4e70 — Francesco Camuffo Initial commit 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# f292

C implementation of the [Prime-Representing Constant](https://en.wikipedia.org/wiki/Formula_for_primes#A_function_that_represents_all_primes) (A function that represents all primes).
Also knows as `2.920050977316134712092562917112019`.

---

Uses [GMP](https://gmplib.org/) to handle big floating point numbers.

---

## Build

``` sh
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
```