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 / tests / one_layer / generalization / dev / tasks / cases / devgen04 / prompt

3 lines · 262 bytes Raw Blame History
1Write a function even_tri_odd_cube that takes an unsigned 16-bit number n and returns an unsigned 64-bit
2number. If n is even, return the sum 1 + 2 + ... + n, adding the numbers one at a time (0 when n is 0).
3If n is odd, return n*n*n - 2*n + 5. It never traps.