GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — algorithms/maths/gcd.py at master · marcosfede/algorithms Expand file tree/ Copy pathgcd.pyMore file actions 13 lines (11 loc) · 310 Bytes / Copy pathgcd.pyFile metadata and controls13 lines (11 loc) · 310 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 def gcd(a, b): """Computes the greatest common divisor of integers a and b using Euclid's Algorithm. """ while True: if b == 0: return a a, b = b, a % b def lcm(a, b): """Computes the lowest common multiple of integers a and b.""" return a * b / gcd(a, b) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |