Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zubayerhimel/fun-gcd
Find the Greatest Common Divisor using Euclidean Algorithm
https://github.com/zubayerhimel/fun-gcd
euclidean-algorithm gcd npm npm-package
Last synced: 8 days ago
JSON representation
Find the Greatest Common Divisor using Euclidean Algorithm
- Host: GitHub
- URL: https://github.com/zubayerhimel/fun-gcd
- Owner: zubayerhimel
- Created: 2020-10-03T15:12:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T16:51:43.000Z (about 4 years ago)
- Last Synced: 2024-10-05T18:04:42.275Z (about 1 month ago)
- Topics: euclidean-algorithm, gcd, npm, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/fun-gcd
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Get **Greatest Common Divisor (GCD)** using Euclidean Algorithm.
**Install**
```
npm i fun-gcd
```**Usage**
```js
// es5
const eq = require("fun-gcd");// es6
import eq from "fun-gcd";console.log(eq.gcdOfTwo(2, 3));
// => 1console.log(eq.gcdOfTwo(7, 77));
// => 7
```