suve

awful: function: gcd

Declaration

int :gcd ( int $A , int $B )

Summary

Returns the greatest common divisor of A and B.

Example

# :gcd example
:writeln :gcd  i11 i29   # Should be 1
:writeln :gcd i270 i33   # Should be 3
:writeln :gcd i256 i64   # Should be 64

wikipage modified on 2014/0601/2317