omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / narcissistic-decimal-number / wolfram.txt
| 1 | Wolfram cross-check of tasks/narcissistic-decimal-number/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) = 5bf03cc0ba2aeace6f5ccb3354dec8108519c606158020666debd32efa4b147b. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | found = 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}]]]; |
| 12 | s = "first 25 narcissistic decimal numbers: " <> StringRiffle[ToString /@ Take[found, 25], " "] <> "\n"; |
| 13 | {Hash[s, "SHA256", "HexString"], s} |
| 14 | result: |
| 15 | Out[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"} |