interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / narcissistic-decimal-number / wolfram.txt

15 lines · 1084 bytes Raw Blame History
1Wolfram cross-check of tasks/narcissistic-decimal-number/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) = 5bf03cc0ba2aeace6f5ccb3354dec8108519c606158020666debd32efa4b147b.
6agreement: YES
7query:
8found = Union[{0}, Flatten[Table[
9 (Total[#^k] &) /@ Select[(Subtract[#, Range[0, k - 1]] &) /@ Subsets[Range[0, 9 + k - 1], {k}],
10 With[{s = Total[#^k]}, IntegerLength[s] == k && Sort[IntegerDigits[s]] == #] &],
11 {k, 1, 7}]]];
12s = "first 25 narcissistic decimal numbers: " <> StringRiffle[ToString /@ Take[found, 25], " "] <> "\n";
13{Hash[s, "SHA256", "HexString"], s}
14result:
15Out[1]= {"5bf03cc0ba2aeace6f5ccb3354dec8108519c606158020666debd32efa4b147b", "first 25 narcissistic decimal numbers: 0 1 2 3 4 5 6 7 8 9 153 370 371 407 1634 8208 9474 54748 92727 93084 548834 1741725 4210818 9800817 9926315\n"}