interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / lucas-lehmer-test / wolfram.txt

12 lines · 851 bytes Raw Blame History
1Wolfram cross-check of tasks/lucas-lehmer-test/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) = 477dcd8c7c35a449e29fab6d3e4d7e152464a6dece681cbf8b7a55b906503ea2.
6agreement: YES
7query:
8s = "Mersenne primes 2^p - 1 for p <= 63, by the Lucas-Lehmer test:\n" <>
9 StringRiffle[("M" <> ToString[#]) & /@ Select[Range[2, 63], MersennePrimeExponentQ], " "] <> "\n";
10{Hash[s, "SHA256", "HexString"], s}
11result:
12Out[1]= {"477dcd8c7c35a449e29fab6d3e4d7e152464a6dece681cbf8b7a55b906503ea2", "Mersenne primes 2^p - 1 for p <= 63, by the Lucas-Lehmer test:\nM2 M3 M5 M7 M13 M17 M19 M31 M61\n"}