Skip to content

Calculate the greatest common divisor of multiple values

License

Notifications You must be signed in to change notification settings

rikonaka/gcdx-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcdx-rs

Calculate the greatest common divisor of multiple values.

Rust

Example

use gcdx::gcdx;

fn main() {
    let v = vec![10, 9, 8, 7];
    let g = gcdx(&v).unwrap();
    println!("{}", g);
    assert_eq!(g, 1);
}

About

Calculate the greatest common divisor of multiple values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages