#math

gcd

Calculate the greatest common divisor

7 stable releases

Uses old Rust 2015

2.1.0 Dec 21, 2021
2.0.2 Sep 24, 2021
2.0.1 Jan 31, 2020
1.2.0 Jan 20, 2019
1.0.0 Jan 18, 2016

#39 in Algorithms

Download history 10773/week @ 2022-01-26 12572/week @ 2022-02-02 12097/week @ 2022-02-09 10441/week @ 2022-02-16 5888/week @ 2022-02-23 7803/week @ 2022-03-02 6640/week @ 2022-03-09 8201/week @ 2022-03-16 8261/week @ 2022-03-23 10936/week @ 2022-03-30 15588/week @ 2022-04-06 17385/week @ 2022-04-13 15760/week @ 2022-04-20 9033/week @ 2022-04-27 12066/week @ 2022-05-04 8629/week @ 2022-05-11

48,455 downloads per month
Used in 54 crates (13 directly)

MIT/Apache

10KB
187 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.

Dependencies