Calculate GCD (JavaScript)

Program

Description

This JavaScript program calculates the greatest common divisor (GCD) of the given integers. The numbers must be between 0 and 253. This program can be useful for simplifying fractions. The algorithm being used is the classic GCD algorithm by Euclid, which is very fast.

The source code is available.

Examples

More info

Related



Feedback

Question? Comment? Contact me

ProjectNayuki: Like, comment, follow updates on Facebook