interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / sum-of-multiples / sum-of-multiples.om

10 lines · 487 bytes Raw Blame History
1note Exercism-style exercise "sum-of-multiples": https://exercism.org/tracks/python/exercises/sum-of-multiples
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note sum is the sum of every distinct number below limit that is a multiple of at least one of the
4note factors fs (a factor 0 has no multiples here).
5note Check it with: sh exercise.sh exercises/sum-of-multiples
6om2
7fn sum fs view ulong * limit ulong to ulong
8note replace this line with your solution
9trap 13
10end