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 / devgen09 / hidden / reference.osc

15 lines · 356 bytes Raw Blame History
1fn pair_sum_div(n: u8, k: u8) -> u32 {
2 let m: u32 = n as u32;
3 let q: u32 = k as u32;
4 let mut c: u32 = 0;
5 let mut i: u32 = 1;
6 while i <= m bound 256 {
7 let mut j: u32 = i + 1;
8 while j <= m bound 256 {
9 if (i + j) % q == 0 { c = c + 1; }
10 j = j + 1;
11 }
12 i = i + 1;
13 }
14 return c;
15}