Decision Workspace
big_num_math vs num-prime vs dashu-int
Side-by-side comparison of Rust crates
57
big_num_math
stablev7.0.1
Unostentatious and internally banal library for computations on large numbers.
67
num-prime
growingv0.6.1
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`.
64
dashu-int
growingv0.6.2
Arbitrary-precision integer math library for Rust, balancing ergonomics and efficiency. Provides UBig and IBig (unsigned and signed), with small values inlined on the stack. Efficient arithmetic, modular arithmetic, and number theory (pow, ilog, gcd, gcd_ext); two's-complement bit operations; parsing and formatting in base 2-36; optional serde, rand, num-traits, rkyv, and zeroize.
Core Metrics
| big_num_math | num-prime | dashu-int | |
|---|---|---|---|
| Health Score | 57 | 67 | 64 |
| Total Downloads | 38.9K | 6.7M | 4.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 272 | 348 |
| Releases | 60 | 21 | 18 |
| Last Updated | 68d ago | 17d ago | 8d ago |
| Age | 2y 4m | 4y 9m | 4y 3m |
Health Breakdown
big_num_math
Maintenance
15
Quality
19
Community
5
Popularity
5
Documentation
13
num-prime
Maintenance
17
Quality
13
Community
15
Popularity
8
Documentation
14
dashu-int
Maintenance
17
Quality
11
Community
13
Popularity
8
Documentation
15
Technical Details
| big_num_math | num-prime | dashu-int | |
|---|---|---|---|
| Version | 7.0.1 | 0.6.1 | 0.6.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 8 | 22 |
| Crate Size | 46KB | 161KB | 227KB |
| Features | 5 | 3 | 7 |
| Yanked % | 20.0% | 4.8% | 5.6% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | 1.70 | 1.68 |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •num-prime leads with a health score of 67/100, but none of the options score above 80.
- •dashu-int is depended on by 348 crates — strongest ecosystem trust.
- •num-prime, dashu-int are pre-1.0 — API may change.