On 25th of January 2020, Dean Rasheed committed patch:
Add functions gcd() and lcm() for integer and numeric types. These compute the greatest common divisor and least common multiple of a pair of numbers using the Euclidean algorithm. Vik Fearing, reviewed by Fabien Coelho. Discussion: https://firstname.lastname@example.org
Continue reading Waiting for PostgreSQL 13 – Add functions gcd() and lcm() for integer and numeric types.