interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / bridge / kit / samples / gcd.om

11 lines · 137 bytes Raw Blame History
1fn gcd a long b long to long
2while ne b 0
3t = rem a b
4a = b
5b = t
6end
7ret a
8end
9fn lcm a long b long to long
10ret mul div a gcd a b b
11end