interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / happy-numbers / wolfram.txt

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