omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / totient-function / wolfram.txt
| 1 | Wolfram cross-check of tasks/totient-function/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) = bcd1b48efefe270ac88d52ad00f41541e4abd6eecf999b7a19e02814cf80e20b. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | s = StringJoin[Table["phi(" <> ToString[n] <> ") = " <> ToString[EulerPhi[n]] <> If[PrimeQ[n], ", prime", ""] <> "\n", {n, 1, 25}]] <> |
| 9 | StringJoin[("primes up to " <> ToString[#] <> ": " <> ToString[PrimePi[#]] <> "\n") & /@ {100, 1000, 10000, 100000}]; |
| 10 | {Hash[s, "SHA256", "HexString"], s} |
| 11 | result: |
| 12 | Out[1]= {"bcd1b48efefe270ac88d52ad00f41541e4abd6eecf999b7a19e02814cf80e20b", "phi(1) = 1\nphi(2) = 1, prime\nphi(3) = 2, prime\nphi(4) = 2\nphi(5) = 4, prime\nphi(6) = 2\nphi(7) = 6, prime\nphi(8) = 4\nphi(9) = 6\nphi(10) = 4\nphi(11) = 10, prime\nphi(12) = 4\nphi(13) = 12, prime\nphi(14) = 6\nphi(15) = 8\nphi(16) = 8\nphi(17) = 16, prime\nphi(18) = 6\nphi(19) = 18, prime\nphi(20) = 8\nphi(21) = 12\nphi(22) = 10\nphi(23) = 22, prime\nphi(24) = 8\nphi(25) = 20\nprimes up to 100: 25\nprimes up to 1000: 168\nprimes up to 10000: 1229\nprimes up to 100000: 9592\n"} |