interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / proper-divisors / wolfram.txt

15 lines · 1102 bytes Raw Blame History
1Wolfram cross-check of tasks/proper-divisors/expected.txt
2tool: WolframLanguageEvaluator (Wolfram MCP, https://agenttools.wolfram.com/mcp), 2026-10-27
3The query builds the task's whole output text from Wolfram built-ins, independently of omc and
4of oracle.py, and returns {SHA-256 of that text, the text}. It agrees when that SHA-256 equals
5sha256(expected.txt) = 0056f6b77996c5288e405826503b7f6bff40d80132cfaa9fe7d92e6c2072de1b.
6agreement: YES
7query:
8pd[n_] := Most[Divisors[n]];
9cnt = Table[DivisorSigma[0, n] - 1, {n, 1, 20000}];
10b = First[FirstPosition[cnt, Max[cnt]]];
11s = StringJoin[Table[ToString[n] <> ":" <> StringJoin[(" " <> ToString[#]) & /@ pd[n]] <> "\n", {n, 1, 10}]] <>
12 "the number in 1..20000 with the most proper divisors: " <> ToString[b] <> " has " <> ToString[Max[cnt]] <> " proper divisors\n";
13{Hash[s, "SHA256", "HexString"], s}
14result:
15Out[1]= {"0056f6b77996c5288e405826503b7f6bff40d80132cfaa9fe7d92e6c2072de1b", "1:\n2: 1\n3: 1\n4: 1 2\n5: 1\n6: 1 2 3\n7: 1\n8: 1 2 4\n9: 1 3\n10: 1 2 5\nthe number in 1..20000 with the most proper divisors: 15120 has 79 proper divisors\n"}