omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / least-common-multiple / wolfram.txt
| 1 | Wolfram cross-check of tasks/least-common-multiple/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) = d7d38a17de8d031b4334a64c3ef3320dd4597552ea772ff20123a4f8b67ac792. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | s = StringJoin[("lcm(" <> ToString[#[[1]]] <> ", " <> ToString[#[[2]]] <> ") = " <> ToString[LCM @@ #] <> "\n") & /@ |
| 9 | {{12, 18}, {35, 0}, {0, 5}, {4294967296, 6000000000}}] <> |
| 10 | StringJoin[("lcm(1.." <> ToString[#] <> ") = " <> ToString[LCM @@ Range[#]] <> "\n") & /@ {10, 20, 40}]; |
| 11 | {Hash[s, "SHA256", "HexString"], s} |
| 12 | result: |
| 13 | Out[1]= {"d7d38a17de8d031b4334a64c3ef3320dd4597552ea772ff20123a4f8b67ac792", "lcm(12, 18) = 36\nlcm(35, 0) = 0\nlcm(0, 5) = 0\nlcm(4294967296, 6000000000) = 25165824000000000\nlcm(1..10) = 2520\nlcm(1..20) = 232792560\nlcm(1..40) = 5342931457063200\n"} |