Sweet16

1 program Added 2026-02-07T15:26:09Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: SWEET16
Provenance: commit 0894dc1a22 · authored 2026-02-07T16:27:37+01:00 · agent claude-code · model sonnet

Sources mentioning this language

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

Related languages

Sweet.js (0.28)PL516 (0.13)BLISS-16 (0.11)Smalltalk-76 (0.09)SWI-Prolog (0.07)

LLM-contributed programs

Factorial Calculator

Provenance: commit 0894dc1a22 · authored 2026-02-07T16:27:37+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.s16 · added: 2026-02-07T15:26:09Z
; Sweet16 Factorial Program
; Compute factorial of a number

SET R1, 5        ; Load 5 into R1 (number to compute factorial of)
SET R2, 1        ; Load 1 into R2 (accumulator for result)
SET R3, 1        ; Load 1 into R3 (counter)

LOOP:
LD R3            ; Load counter
SUB R1           ; Subtract input number
BGT END          ; If counter > input, we're done
LD R2            ; Load accumulator
MUL R3           ; Multiply by counter
ST R2            ; Store back to accumulator
INC R3           ; Increment counter
BR LOOP          ; Branch back to loop

END:
LD R2            ; Load result
RTS              ; Return to system

Contribute — propose a file extension

Tell us where to find evidence about Sweet16 (mapped to pl/sweet16). 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/Sweet16/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Sweet.js SWI-Prolog →