gcd

command
v0.0.0-...-8522c89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 1 Imported by: 0

README

GCD - Greatest Common Divisor

Euclid of Alexandria outlined an algorithm for solving this problem in one of the volumes of his Elements most famous for its systematic exposition of geometry. In modern terms, Euclid’s algorithm is based on applying repeatedly the equality

gcd(m, n) = gcd(n, m mod n)

For e.g:

gcd(60, 24) = gcd(24, 12) = gcd(12, 0) = 12

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL