interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / harshad-or-niven-series / wolfram.txt

13 lines · 957 bytes Raw Blame History
1Wolfram cross-check of tasks/harshad-or-niven-series/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) = a8f0174aee10d26e9344945aed3b4b4068a31d34898c7ada437fbc8a596a5ff0.
6agreement: YES
7query:
8hQ[n_] := Divisible[n, Total[IntegerDigits[n]]];
9s = "first 20 Harshad numbers: " <> StringRiffle[ToString /@ Take[Select[Range[200], hQ], 20], " "] <> "\n" <>
10 "first Harshad number above 1000: " <> ToString[SelectFirst[Range[1001, 2000], hQ]] <> "\n";
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"a8f0174aee10d26e9344945aed3b4b4068a31d34898c7ada437fbc8a596a5ff0", "first 20 Harshad numbers: 1 2 3 4 5 6 7 8 9 10 12 18 20 21 24 27 30 36 40 42\nfirst Harshad number above 1000: 1002\n"}