gcd

0.0.1 • Public • Published

gcd

Compute the greatest common divisor using Euclid's algorithm.

testling badge

build status

example

var gcd = require('gcd');
var n = gcd(121,44);
console.log(n);

11

methods

var gcd = require('gcd')

gcd(a, b)

Return the greatest common divisor of the integers a and b using Euclid's algorithm.

install

With npm do:

npm install gcd

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    14,305
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    14,305
  • 0.0.0
    64

Package Sidebar

Install

npm i gcd

Weekly Downloads

12,220

Version

0.0.1

License

MIT

Last publish

Collaborators

  • nopersonsmodules