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

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