Cargo Features
[dependencies]
machine-prime = { version = "1.5.2", default-features = false, features = ["lucas", "table", "ssmr", "wide", "internal"] }
- lucas
-
Adds Trial division and Lucas table
Affects
primes::LUCAS_PARAM
,primes::INV_8
,primes::PRIME_INV_64
… - table default
-
Swaps Lucas with hashtable
Affects
check::base_selector
,hashbase::FERMAT_TABLE
,primes::INV_8
,primes::PRIME_INV_64
… - ssmr
-
Single shot branching
Affects
check::base_selector
,hashbase::FERMAT_TABLE
,primes::INV_8
,primes::PRIME_INV_64
… - wide
-
128-bit primality
- internal
-
Exposes internal functions
- default = table
-
The
table
feature is set by default whenevermachine-prime
is added without
somewhere in the dependency tree.default-features = false