omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / proper-divisors / wolfram.txt
| 1 | Wolfram cross-check of tasks/proper-divisors/expected.txt |
| 2 | tool: WolframLanguageEvaluator (Wolfram MCP, https://agenttools.wolfram.com/mcp), 2026-10-27 |
| 3 | The query builds the task's whole output text from Wolfram built-ins, independently of omc and |
| 4 | of oracle.py, and returns {SHA-256 of that text, the text}. It agrees when that SHA-256 equals |
| 5 | sha256(expected.txt) = 0056f6b77996c5288e405826503b7f6bff40d80132cfaa9fe7d92e6c2072de1b. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | pd[n_] := Most[Divisors[n]]; |
| 9 | cnt = Table[DivisorSigma[0, n] - 1, {n, 1, 20000}]; |
| 10 | b = First[FirstPosition[cnt, Max[cnt]]]; |
| 11 | s = 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} |
| 14 | result: |
| 15 | Out[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"} |