iterative-gcd
v1.0.1
Published
Compute the greatest common divisor using Iterative implementation.
Downloads
4
Maintainers
Readme
iterative-gcd
Compute the greatest common divisor using Iterative implementation.
Install
npm install iterative-gcd
Usage
var gcd = require('iterative-gcd')
gcd(8, 12) // 4
gcd(48, 18) // 6
License
MIT. Copyright (C) Halil İbrahim Şener.