TNT is a free library that provides a rich set of functions that implement many certificates about Integers. It is carefully designed to be fast while producing correct results. The name stands for TNT Number Theory.
TNT also has a wide variety of tests that check the correctness of the implemented algorithm unlike other proposals.
Here is the list of certificates that TNT provides:
- Primality: whether the input is a prime number.
- AKS 2002
- AKS 2003
- AKS Bernstein (in progress)
- AKS 2005 (in progress)
- Prime Sieves: returns an ordered list of primes below the input.
- Sieve of Eratosthenes (in progress)
- Quadratic Sieve of Atkin (in progress)
- Perfect Power Detection: mostly algorithms by Daniel J. Bernstein.
TNT uses some GNU libraries, specifically GMP, NTL and GF2X. This crate automatically fetches the latest versions and installs them in the package directory.