lcm
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/lcm package

0.0.3 • Public • Published

lcm

Compute the least common multiple using Euclid's algorithm.

Build Status

example

var lcm = require('lcm');
var n = lcm(21, 6);
console.log(n);

42

methods

var lcm = require('lcm')

lcm(a, b)

Return the least common multiple of the integers a and b using Euclid's algorithm.

install

With npm do:

npm install lcm

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    14,004
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    14,004
  • 0.0.2
    13
  • 0.0.1
    8

Package Sidebar

Install

npm i lcm

Weekly Downloads

11,784

Version

0.0.3

License

MIT

Last publish

Collaborators

  • nickleefly