omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / happy-numbers / wolfram.txt
| 1 | Wolfram cross-check of tasks/happy-numbers/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) = bcea1dfabd07495e659226991e0cb35c5eb6b11d028a67e0a503639b7eec422d. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | happyQ[n_] := MemberQ[NestList[Total[IntegerDigits[#]^2] &, n, 50], 1]; |
| 9 | s = "first 8 happy numbers: " <> StringRiffle[ToString /@ Take[Select[Range[100], happyQ], 8], " "] <> "\n"; |
| 10 | {Hash[s, "SHA256", "HexString"], s} |
| 11 | result: |
| 12 | Out[1]= {"bcea1dfabd07495e659226991e0cb35c5eb6b11d028a67e0a503639b7eec422d", "first 8 happy numbers: 1 7 10 13 19 23 28 31\n"} |