XION
1 program
Added 2026-03-17T05:23:19Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: OpenXION
Provenance: commit e15f2059f0 · authored 2026-03-17T06:23:49+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)
Related languages
LLM-contributed programs
Primes
Provenance: commit e15f2059f0 · authored 2026-03-17T06:23:49+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
#!/usr/bin/xion
function isprime n
if n < 2 then return false
repeat with x = 2 to the sqrt of n
if n mod x == 0 then return false
end repeat
return true
end isprime
on primes cnt
repeat with x = 0 to cnt
if isprime(x) then
put x
end if
end repeat
end primes
ask "List primes up to:" with "50"
if it is not empty and the result is not "Cancel" then primes it