2022-03-04 17:06:39 +01:00
|
|
|
# Indivisible
|
|
|
|
|
|
2025-12-10 15:06:27 +01:00
|
|
|
Indivisible is an optimized prime number generator and tester.
|
2021-03-01 18:15:06 +01:00
|
|
|
|
2022-03-04 17:06:39 +01:00
|
|
|
## Build & Installation
|
|
|
|
|
|
2025-12-10 15:06:27 +01:00
|
|
|
Build a binary release using the following command:
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
$ cargo build -r
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Once compiled, you can install it using the `install` script. By default this
|
|
|
|
|
will install to `/usr/local/{bin,share}`, but you can optionally change the
|
|
|
|
|
`PREFIX` used as follows:
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
$ PREFIX="~/.local" ./install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Additionally there is an `uninstall` script available. If you have used a custom
|
|
|
|
|
`PREFIX` this must also be specified to uninstall in the same manner. To see
|
|
|
|
|
where you've installed it you can always use the following command:
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
$ which indivisible
|
2022-03-04 17:06:39 +01:00
|
|
|
```
|
2021-03-03 11:57:19 +01:00
|
|
|
|
2022-03-04 17:06:39 +01:00
|
|
|
## Legacy
|
|
|
|
|
|
|
|
|
|
This project was originally written in C. It can be found in the
|
2025-12-04 11:55:40 +01:00
|
|
|
[indivisible-legacy repository](https://code.ortegas.org/nortega/indivisible-legacy).
|
2022-03-04 17:06:39 +01:00
|
|
|
|
|
|
|
|
## License
|
2021-03-01 18:15:06 +01:00
|
|
|
|
|
|
|
|
This project is licensed under the terms & conditions of the GNU General
|
|
|
|
|
Public License version 3 or greater (see `LICENSE` file for more
|
|
|
|
|
information).
|