interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / primality-by-trial-division / wolfram.txt

13 lines · 1115 bytes Raw Blame History
1Wolfram cross-check of tasks/primality-by-trial-division/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) = 23da22a8ba264c1ffc8cd421eae1cf4b8010aa802c9d66f6da3990eb74104052.
6agreement: YES
7query:
8s = "primes below 100: " <> StringRiffle[ToString /@ Select[Range[0, 99], PrimeQ], " "] <> "\n" <>
9 StringJoin[(ToString[#] <> If[PrimeQ[#], " is prime\n", " is not prime\n"]) & /@
10 {1, 2, 9, 561, 7919, 2147483647, 999999999989, 999999999999, 1000000000039}];
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"23da22a8ba264c1ffc8cd421eae1cf4b8010aa802c9d66f6da3990eb74104052", "primes below 100: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97\n1 is not prime\n2 is prime\n9 is not prime\n561 is not prime\n7919 is prime\n2147483647 is prime\n999999999989 is prime\n999999999999 is not prime\n1000000000039 is prime\n"}