Decision Workspace
is-prime-for-primitive-int vs miller_rabin vs solovay_strassen
Side-by-side comparison of Rust crates
44
is-prime-for-primitive-int
growingv0.5.1
is_prime for primitive ineger type
52
miller_rabin
growingv1.1.1
A multi-threaded, arbitrary precision implementation of the Miller-Rabin primality test.
46
solovay_strassen
growingv1.0.3
A multi-threaded, arbitrary precision implementation of the Solovay-Strassen primality test.
Core Metrics
| is-prime-for-primitive-int | miller_rabin | solovay_strassen | |
|---|---|---|---|
| Health Score | 44 | 52 | 46 |
| Total Downloads | 27.4K | 24.1K | 11.8K |
| 30d Downloads | 321 | 210 | 13 |
| Dependents | 14 | 57 | 0 |
| Releases | 7 | 9 | 9 |
| Last Updated | 1561d ago | 1402d ago | 2218d ago |
| Age | 5y 2m | 6y 2m | 6y 3m |
Health Breakdown
is-prime-for-primitive-int
Maintenance
4
Quality
15
Community
8
Popularity
5
Documentation
12
miller_rabin
Maintenance
4
Quality
20
Community
11
Popularity
5
Documentation
12
solovay_strassen
Maintenance
4
Quality
19
Community
6
Popularity
5
Documentation
12
Technical Details
| is-prime-for-primitive-int | miller_rabin | solovay_strassen | |
|---|---|---|---|
| Version | 0.5.1 | 1.1.1 | 1.0.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | AGPL-3.0-or-later | MIT | MIT |
| Dependencies | 1 | 5 | 5 |
| Crate Size | 3KB | 4KB | 3KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •miller_rabin leads with a health score of 52/100, but none of the options score above 80.
- •is-prime-for-primitive-int has the most downloads (27.4K), suggesting wider adoption.
- •⚠ is-prime-for-primitive-int, miller_rabin, solovay_strassen have not been updated in over a year.
- •is-prime-for-primitive-int is pre-1.0 — API may change.