> For the complete documentation index, see [llms.txt](https://solvency.gitbook.io/picoin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solvency.gitbook.io/picoin/mining/bbp-hex-algorithm.md).

# BBP Hex Algorithm

Picoin currently uses the BBP hexadecimal algorithm.

The Bailey–Borwein–Plouffe (BBP) formula allows direct computation of distant hexadecimal digits of π without calculating all previous digits.

This property makes BBP particularly suitable for distributed verification.

The BBP formula is defined as:

```
π = Σ (1 / 16^k) × (
    4 / (8k + 1)
  - 2 / (8k + 4)
  - 1 / (8k + 5)
  - 1 / (8k + 6)
)
```

Advantages:

* random access computation;
* efficient verification;
* deterministic outputs;
* scalable distributed tasks.

Picoin currently uses:

bbp\_hex\_v1

```
BBP hexadecimal implementation version 1
```

as the primary mining algorithm.

Future versions may support additional algorithms.
