Decision Workspace
number-theory vs ecm vs num-prime
Side-by-side comparison of Rust crates
48
number-theory
growingv0.0.26
Fast primality, factorization and elementary number theory for integer types
63
ecm
stablev2.0.0
Fast integer factorization with the elliptic curve method (ECM), P-1 and P+1, following GMP-ECM
67
num-prime
growingv0.6.1
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`.
Core Metrics
| number-theory | ecm | num-prime | |
|---|---|---|---|
| Health Score | 48 | 63 | 67 |
| Total Downloads | 33.1K | 22.5K | 6.7M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 9 | 24 | 272 |
| Releases | 27 | 12 | 21 |
| Last Updated | 266d ago | 13d ago | 17d ago |
| Age | 4y 9m | 3y 3m | 4y 9m |
Health Breakdown
number-theory
Maintenance
9
Quality
15
Community
9
Popularity
5
Documentation
10
ecm
Maintenance
17
Quality
19
Community
10
Popularity
5
Documentation
12
num-prime
Maintenance
17
Quality
13
Community
15
Popularity
8
Documentation
14
Technical Details
| number-theory | ecm | num-prime | |
|---|---|---|---|
| Version | 0.0.26 | 2.0.0 | 0.6.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | LGPL-3.0-or-later | Apache-2.0 |
| Dependencies | 1 | 11 | 8 |
| Crate Size | 49KB | 188KB | 161KB |
| Features | 1 | 3 | 3 |
| Yanked % | 3.7% | 0.0% | 4.8% |
| Edition | 2021 | 2024 | 2018 |
| MSRV | — | 1.87 | 1.70 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •num-prime leads with a health score of 67/100, but none of the options score above 80.
- •num-prime is depended on by 272 crates — strongest ecosystem trust.
- •number-theory, num-prime are pre-1.0 — API may change.