Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listFeb 8, 2026 19:59zielajzielajError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:25M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2509,926,4031,024,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:25010,362,3601,030,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:25010,029,1321,029,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 8, 2026 20:013,31718,111,6292,919,00002,392,064
5Feb 8, 2026 20:013,32416,599,7951,950,000975,0002,392,064
6Feb 8, 2026 20:013,32718,743,4081,952,000976,0002,396,160
7Feb 8, 2026 20:023,32720,814,7901,952,000976,0002,269,184
8Feb 8, 2026 20:013,34221,372,3551,961,000980,0002,400,256
9Feb 8, 2026 20:023,34817,216,1891,964,000982,0002,277,376
10Feb 8, 2026 19:593,35516,384,0562,952,00002,277,376
11Feb 8, 2026 20:013,35619,645,3921,969,000984,0002,400,256
12Feb 8, 2026 20:023,35920,262,1832,956,00002,531,328
13Feb 8, 2026 20:013,37217,252,1671,978,000989,0002,387,968
14Feb 8, 2026 19:593,45818,602,2412,029,0001,014,0002,387,968
15Feb 8, 2026 19:593,46522,293,5642,033,0001,016,0002,392,064
16Feb 8, 2026 19:593,48123,681,8922,042,0001,021,0002,387,968
17Feb 8, 2026 20:013,52618,153,7032,069,0001,034,0002,396,160
18Feb 8, 2026 19:593,69015,778,3372,165,0001,082,0002,273,280
19Feb 8, 2026 20:014,06620,760,2973,578,00002,383,872
20Feb 8, 2026 19:594,11318,232,4573,619,00002,392,064
21Feb 8, 2026 20:014,23119,328,2783,723,00002,392,064