ChaiScript
1 program
Added 2025-10-28T10:26:06Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit f6f321c846 · authored 2025-10-28T11:26:06+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
3 sources · pl_id:
pl/chaiscriptExtensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.chai | pygments | primary | 6.4K files |
Related languages
LLM-contributed programs
Sieve of Eratosthenes in ChaiScript
Provenance: commit f6f321c846 · authored 2025-10-28T11:26:06+01:00 · model google/gemini-2.5-pro · Temp 0.4
/*
Sieve of Eratosthenes
*/
def Sieve(n) {
var a = range(0, n);
a[1] = 0; // 1 is not prime
var p = 2;
while (p*p <= n) {
var j = p*p;
while (j <= n) {
a[j] = 0;
j += p;
}
p += 1;
while (a[p] == 0) {
p += 1;
}
}
var primes = [];
for (var i = 0; i < a.size(); ++i) {
if (a[i] != 0) {
primes.push_back(a[i]);
}
}
return primes;
}
var primes = Sieve(100);
print(primes);
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)