interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / perfect-totient-numbers / wolfram.txt

12 lines · 879 bytes Raw Blame History
1Wolfram cross-check of tasks/perfect-totient-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) = 5c8d7b3ea25182e410297fee9e4d703dc6d627ce0a277d404e50fe8e65ac8953.
6agreement: YES
7query:
8ptn = Select[Range[2, 6000], Total[Rest[FixedPointList[EulerPhi, #]]] - 1 == # &];
9s = "first 20 perfect totient numbers: " <> StringRiffle[ToString /@ Take[ptn, 20], " "] <> "\n";
10{Hash[s, "SHA256", "HexString"], s}
11result:
12Out[1]= {"5c8d7b3ea25182e410297fee9e4d703dc6d627ce0a277d404e50fe8e65ac8953", "first 20 perfect totient numbers: 3 9 15 27 39 81 111 183 243 255 327 363 471 729 2187 2199 3063 4359 4375 5571\n"}