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 / si / rosetta / exercises / armstrong-numbers / armstrong-numbers.om

9 lines · 415 bytes Raw Blame History
1note Exercism-style exercise "armstrong-numbers": https://exercism.org/tracks/python/exercises/armstrong-numbers
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note Return true when n equals the sum of its digits, each raised to the number of digits.
4note Check it with: sh exercise.sh exercises/armstrong-numbers
5om2
6fn armstrong n ulong to bool
7note replace this line with your solution
8trap 13
9end