interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / cuban-primes / wolfram.txt

13 lines · 2226 bytes Raw Blame History
1Wolfram cross-check of tasks/cuban-primes/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) = bcb595311923a6a0e8a1e90a44645426e63e62df320b5b64ff5ae2285c391d9b.
6agreement: YES
7query:
8c = Select[3 #^2 + 3 # + 1 & /@ Range[800000], PrimeQ];
9s = "first 200 cuban primes:\n" <> StringJoin[(StringRiffle[ToString /@ #, " "] <> "\n") & /@ Partition[Take[c, 200], 10]] <>
10 "the 100000th cuban prime: " <> ToString[c[[100000]]] <> "\n";
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"bcb595311923a6a0e8a1e90a44645426e63e62df320b5b64ff5ae2285c391d9b", "first 200 cuban primes:\n7 19 37 61 127 271 331 397 547 631\n919 1657 1801 1951 2269 2437 2791 3169 3571 4219\n4447 5167 5419 6211 7057 7351 8269 9241 10267 11719\n12097 13267 13669 16651 19441 19927 22447 23497 24571 25117\n26227 27361 33391 35317 42841 45757 47251 49537 50311 55897\n59221 60919 65269 70687 73477 74419 75367 81181 82171 87211\n88237 89269 92401 96661 102121 103231 104347 110017 112327 114661\n115837 126691 129169 131671 135469 140617 144541 145861 151201 155269\n163567 169219 170647 176419 180811 189757 200467 202021 213067 231019\n234361 241117 246247 251431 260191 263737 267307 276337 279991 283669\n285517 292969 296731 298621 310087 329677 333667 337681 347821 351919\n360187 368551 372769 374887 377011 383419 387721 398581 407377 423001\n436627 452797 459817 476407 478801 493291 522919 527941 553411 574219\n584767 590077 592741 595411 603457 608851 611557 619711 627919 650071\n658477 666937 689761 692641 698419 707131 733591 742519 760537 769627\n772669 784897 791047 812761 825301 837937 847477 863497 879667 886177\n895987 909151 915769 925741 929077 932419 939121 952597 972991 976411\n986707 990151 997057 1021417 1024921 1035469 1074607 1085407 1110817 1114471\n1125469 1155061 1177507 1181269 1215397 1253887 1281187 1285111 1324681 1328671\n1372957 1409731 1422097 1426231 1442827 1451161 1480519 1484737 1527247 1570357\nthe 100000th cuban prime: 1792617147127\n"}