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
omega-mv / tests / one_layer / generalization / dev / tasks / cases / devgen06 / prompt
| 1 | Write a function pow_small_or_mix that takes unsigned 8-bit numbers b and e and returns an unsigned |
| 2 | 64-bit number. If b is less than 10, return b to the power e, computed by multiplying e times (b to the |
| 3 | power 0 is 1, also for b = 0); for every input checked this value fits in 64 bits. Otherwise return |
| 4 | (b*b + e*e) * 3 + b. It never traps. |