interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / amicable-pairs / wolfram.txt

13 lines · 885 bytes Raw Blame History
1Wolfram cross-check of tasks/amicable-pairs/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) = 887ab0802e179f080fbf921a2a954d846aec410a73c5080a73d9cb5790a2fb65.
6agreement: YES
7query:
8sp[n_] := DivisorSigma[1, n] - n;
9pairs = Select[Table[{n, sp[n]}, {n, 1, 19999}], #[[1]] < #[[2]] < 20000 && sp[#[[2]]] == #[[1]] &];
10s = StringJoin[(ToString[#[[1]]] <> " " <> ToString[#[[2]]] <> "\n") & /@ pairs];
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"887ab0802e179f080fbf921a2a954d846aec410a73c5080a73d9cb5790a2fb65", "220 284\n1184 1210\n2620 2924\n5020 5564\n6232 6368\n10744 10856\n12285 14595\n17296 18416\n"}