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 / tools / exp445 / arms / examples / sum_range / prompt

3 lines · 254 bytes Raw Blame History
1Write a function sum_range that takes two signed 32-bit numbers lo and hi and returns the sum of all
2integers from lo to hi inclusive, as a signed 64-bit number. When lo > hi the sum is 0. lo and hi
3are always between -100000 and 100000. It never traps.