Registry / utility / primal

primal

JSON →
library0.3.3rscratesunverified

Provides optimized prime sieves, primality checking, prime enumeration, factorization, and bounds for π(n) and p_k.

# Cargo.toml [dependencies] primal = "0.3.3"
INSTALL
IMPORT
SIG · PRIMAL
P
primal
utilityrustv0.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Primes
✓ use primal::Primes;

Generates the first 10 prime numbers.

use primal::Primes; let primes: Vec<usize> = Primes::all().take(10).collect(); assert_eq!(primes, vec![2, 3, 5, 7, 11, 13, 17, 19, 23, 29]);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
primal — cargo add primal · libregistry