omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / modular-exponentiation / wolfram.txt
| 1 | Wolfram cross-check of tasks/modular-exponentiation/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) = ee023d2d24dce4d70b433f300d3a0ffece67eaa82fe895a730a79d2f3d8cb1f7. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | a = 2988348162058574136915891421498819466320163312926952423791023078876139; |
| 9 | b = 2351399303373464486466122544523690094744975233415544072992656881240319; |
| 10 | s = "a^b mod 10^40 = " <> ToString[PowerMod[a, b, 10^40]] <> "\n"; |
| 11 | {Hash[s, "SHA256", "HexString"], s} |
| 12 | result: |
| 13 | Out[1]= {"ee023d2d24dce4d70b433f300d3a0ffece67eaa82fe895a730a79d2f3d8cb1f7", "a^b mod 10^40 = 1527229998585248450016808958343740453059\n"} |