Registry / crypto / num-primes

num-primes

JSON →
library0.3.0rscratesunverified

Generates large prime and composite numbers using the num crate with a simple interface.

# Cargo.toml [dependencies] num-primes = "0.3.0"
INSTALL
IMPORT
SIG · NUM-PRIMES
N
num-primes
cryptorustv0.3.0
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.

Generator
use num_primes::Generator;

Generate a 256-bit prime number

use num_primes::Generator; fn main() { let prime = Generator::new_prime(256); println!("Generated prime: {}", prime); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
num-primes — cargo add num-primes · libregistry