Fairly simple and short.

Here’s the code:

https://github.com/Dragv/wsq12/tree/master

CC BY 4.0 WSQ12 – Greatest Common Divisor by drag04 is licensed under a Creative Commons Attribution 4.0 International License.