54 lines
220 B
Plaintext
54 lines
220 B
Plaintext
>main
|
|
gto
|
|
:gcd
|
|
=v
|
|
=u
|
|
$u
|
|
$v
|
|
>gcd-loop
|
|
gge
|
|
$u
|
|
=t
|
|
$v
|
|
=u
|
|
$t
|
|
=v
|
|
:gcd-loop
|
|
$v
|
|
0
|
|
>gcd-ret
|
|
gle
|
|
$v
|
|
=t
|
|
$u
|
|
$v
|
|
mod
|
|
=v
|
|
$t
|
|
=u
|
|
>gcd-loop
|
|
gto
|
|
:gcd-ret
|
|
$u
|
|
ret
|
|
:lcm
|
|
=b
|
|
=a
|
|
$a
|
|
$b
|
|
>gcd
|
|
fun
|
|
=gcd
|
|
$a
|
|
$gcd
|
|
div
|
|
$b
|
|
mul
|
|
ret
|
|
:main
|
|
21
|
|
6
|
|
>lcm
|
|
fun
|
|
end
|