Aikido

1 program Added 2026-02-24T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 4d05588120 · authored 2026-02-24T13:20:25+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Aiken (0.25)Suneido (0.21)Aime (0.17)Aleo (0.17)Anko (0.17)

LLM-contributed programs

Factors of an Integer

Provenance: commit 4d05588120 · authored 2026-02-24T13:20:25+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.aikido · license: Public Domain · added: 2026-02-24T00:00:00Z
import math

function factor (n:int) {
    var result = []
    function append (v) {
        if (!(v in result)) {
            result.append (v)
        }
    }
    var sqrt = cast<int>(Math.sqrt (n))
    append (1)
    for (var i = n-1 ; i >= sqrt ; i--) {
        if ((n % i) == 0) {
            append (i)
            append (n/i)
        }
    }
    append (n)
    return result.sort()
}

function printvec (vec) {
    var comma = ""
    print ("[")
    foreach v vec {
        print (comma + v)
        comma = ", "
    }
    println ("]")
}

printvec (factor (45))
printvec (factor (25))
printvec (factor (100))

Contribute — propose a file extension

Tell us where to find evidence about Aikido (mapped to pl/aikido). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Aikido/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Aiken ail →