interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / semiprime / wolfram.txt

14 lines · 1050 bytes Raw Blame History
1Wolfram cross-check of tasks/semiprime/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) = 14642a17d928ab317cada41a01feb83bf7e35bd037f137e4f31a2ebed4afe490.
6agreement: YES
7query:
8sp = Select[Range[9999], PrimeOmega[#] == 2 &];
9s = "semiprimes below 100: " <> StringRiffle[ToString /@ Select[sp, # < 100 &], " "] <> "\n" <>
10 "semiprimes below 10000: " <> ToString[Length[sp]] <> "\n" <>
11 "1679 = 23 * 73 is semiprime: " <> If[PrimeOmega[1679] == 2, "yes", "no"] <> "\n";
12{Hash[s, "SHA256", "HexString"], s}
13result:
14Out[1]= {"14642a17d928ab317cada41a01feb83bf7e35bd037f137e4f31a2ebed4afe490", "semiprimes below 100: 4 6 9 10 14 15 21 22 25 26 33 34 35 38 39 46 49 51 55 57 58 62 65 69 74 77 82 85 86 87 91 93 94 95\nsemiprimes below 10000: 2625\n1679 = 23 * 73 is semiprime: yes\n"}