#math

gcd

Calculate the greatest common divisor

9 stable releases

Uses new Rust 2021

2.3.0 Jan 16, 2023
2.2.0 Nov 23, 2022
2.1.0 Dec 21, 2021
2.0.2 Sep 24, 2021
1.0.0 Jan 18, 2016

#37 in Algorithms

Download history 17562/week @ 2022-10-07 15529/week @ 2022-10-14 15486/week @ 2022-10-21 15417/week @ 2022-10-28 18785/week @ 2022-11-04 21710/week @ 2022-11-11 15861/week @ 2022-11-18 16035/week @ 2022-11-25 12555/week @ 2022-12-02 16541/week @ 2022-12-09 12997/week @ 2022-12-16 8795/week @ 2022-12-23 12121/week @ 2022-12-30 14424/week @ 2023-01-06 12589/week @ 2023-01-13 13627/week @ 2023-01-20

54,521 downloads per month
Used in 135 crates (14 directly)

MIT/Apache

12KB
232 lines

rust-gcd

Documentation

Small Rust library for calculating the greatest common divisor of two numbers

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps