Decision Workspace
num-modular vs num-prime vs feanor-math
Side-by-side comparison of Rust crates
53
num-modular
growingv0.6.1
Implementation of efficient integer division and modular arithmetic operations with generic number types. Supports various backends including num-bigint, etc..
63
num-prime
growingv0.5.0
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`.
60
feanor-math
stablev3.5.17
A library for number theory, providing implementations for arithmetic in various rings and algorithms working on them.
Core Metrics
| num-modular | num-prime | feanor-math | |
|---|---|---|---|
| Health Score | 53 | 63 | 60 |
| Total Downloads | 16.8M | 4.0M | 79.4K |
| 30d Downloads | 2.7M | 378.1K | 294 |
| Dependents | 174 | 232 | 43 |
| Releases | 17 | 19 | 103 |
| Last Updated | 940d ago | 32d ago | 5d ago |
| Age | 4y 1m | 4y 2m | 2y 7m |
Health Breakdown
num-modular
Maintenance
6
Quality
15
Community
12
Popularity
8
Documentation
12
num-prime
Maintenance
16
Quality
11
Community
14
Popularity
8
Documentation
14
feanor-math
Maintenance
19
Quality
18
Community
7
Popularity
6
Documentation
10
Technical Details
| num-modular | num-prime | feanor-math | |
|---|---|---|---|
| Version | 0.6.1 | 0.5.0 | 3.5.17 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 4 | 8 | 18 |
| Crate Size | 32KB | 152KB | 443KB |
| Features | 1 | 3 | 7 |
| Yanked % | 0.0% | 5.3% | 1.9% |
| Edition | 2018 | 2018 | 2024 |
| MSRV | — | 1.70 | — |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •num-prime leads with a health score of 63/100, but none of the options score above 80.
- •num-modular has the most downloads (16.8M), suggesting wider adoption.
- •num-prime is depended on by 232 crates — strongest ecosystem trust.
- •⚠ num-modular has not been updated in over a year.
- •num-modular, num-prime are pre-1.0 — API may change.