interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / attractive-numbers / wolfram.txt

13 lines · 1227 bytes Raw Blame History
1Wolfram cross-check of tasks/attractive-numbers/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) = 04bb0d4156a542b468bed492db2afecbbd0dea6cbf79348d7d495e45aff9c5f9.
6agreement: YES
7query:
8att = Select[Range[120], PrimeQ[PrimeOmega[#]] &];
9s = "attractive numbers up to 120 (the count of prime factors, with multiplicity, is prime):\n" <>
10 StringJoin[(StringJoin[StringPadLeft[ToString[#], 4] & /@ #] <> "\n") & /@ Partition[att, UpTo[20]]];
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"04bb0d4156a542b468bed492db2afecbbd0dea6cbf79348d7d495e45aff9c5f9", "attractive numbers up to 120 (the count of prime factors, with multiplicity, is prime):\n 4 6 8 9 10 12 14 15 18 20 21 22 25 26 27 28 30 32 33 34\n 35 38 39 42 44 45 46 48 49 50 51 52 55 57 58 62 63 65 66 68\n 69 70 72 74 75 76 77 78 80 82 85 86 87 91 92 93 94 95 98 99\n 102 105 106 108 110 111 112 114 115 116 117 118 119 120\n"}