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 / bench / inference_cost / tasks / task06 / reference.py

6 lines · 124 bytes Raw Blame History
1def collatz_steps_u32(n):
2 s = 0
3 while n > 1:
4 n = 3 * n + 1 if n & 1 else n // 2
5 s += 1
6 return s