Use markdown for README.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-03-04 17:06:39 +01:00
parent a2dfd6a6ca
commit df7017518e

View File

@ -1,10 +1,9 @@
=================== # Indivisible
*** Indivisible ***
===================
Indivisible is an optimized prime number generator and tester written in Rust. Indivisible is an optimized prime number generator and tester written in Rust.
# Build & Installation ## Build & Installation
----------------------
To build the project you will require the Rust compiler and build To build the project you will require the Rust compiler and build
system, `cargo`. At which point you simply run `cargo build` in the root system, `cargo`. At which point you simply run `cargo build` in the root
directory of the project. To create an optimized release build append directory of the project. To create an optimized release build append
@ -15,8 +14,8 @@ the manpage documentation by running the `install` script. In a similar
manner, you can run the `uninstall` script to remove the previously manner, you can run the `uninstall` script to remove the previously
installed binary and documentation. installed binary and documentation.
# Usage ## Usage
-------
The purpose of Indivisible is to find the nth prime and all the primes The purpose of Indivisible is to find the nth prime and all the primes
before it. The basic usage is `indivisible <n>` where `n` is the ordinal before it. The basic usage is `indivisible <n>` where `n` is the ordinal
of the prime you'd like to find. To display all primes before `n`, you of the prime you'd like to find. To display all primes before `n`, you
@ -27,22 +26,23 @@ can also import prime numbers previously computed with the `--import` or
`-i` option. To store already computed primes you are expected to use `-i` option. To store already computed primes you are expected to use
piping like any UNIX user would expect. Here is an example: piping like any UNIX user would expect. Here is an example:
# store first 100 primes in ./primes ```bash
indivisible -v 100 > ./primes # store first 100 primes in ./primes
# appends next 400 primes indivisible -v 100 > ./primes
indivisible -i ./primes -v 500 >> ./primes # appends next 400 primes
# display the 600th prime indivisible -i ./primes -v 500 >> ./primes
indivisible -i ./primes 600 # display the 600th prime
indivisible -i ./primes 600
```
# Legacy ## Legacy
--------
This project was originally written in C. It can be found on my GitLab This project was originally written in C. It can be found in the
page.[1] [indivisible-legacy repository](https://gitlab.com/naortega/Indivisible-legacy)
on my GitLab.
## License
# License
---------
This project is licensed under the terms & conditions of the GNU General This project is licensed under the terms & conditions of the GNU General
Public License version 3 or greater (see `LICENSE` file for more Public License version 3 or greater (see `LICENSE` file for more
information). information).
[1] https://gitlab.com/naortega/Indivisible-legacy