interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / digital-root / wolfram.txt

13 lines · 1256 bytes Raw Blame History
1Wolfram cross-check of tasks/digital-root/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) = 2edc13971b865534887f66aebf2b91eba3cc26ccaddd413b9e54d362d62ed2e6.
6agreement: YES
7query:
8f[n_] := Module[{l = NestWhileList[Total[IntegerDigits[#]] &, n, # > 9 &]},
9 ToString[n] <> ": additive persistence " <> ToString[Length[l] - 1] <> ", digital root " <> ToString[Last[l]] <> "\n"];
10s = StringJoin[f /@ {627615, 39390, 588225, 393900588225, 0, 9, 199, 18446744073709551615}];
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"2edc13971b865534887f66aebf2b91eba3cc26ccaddd413b9e54d362d62ed2e6", "627615: additive persistence 2, digital root 9\n39390: additive persistence 2, digital root 6\n588225: additive persistence 2, digital root 3\n393900588225: additive persistence 2, digital root 9\n0: additive persistence 0, digital root 0\n9: additive persistence 0, digital root 9\n199: additive persistence 3, digital root 1\n18446744073709551615: additive persistence 3, digital root 6\n"}