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 22:18zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4309,975,0961,026,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:4309,244,5961,120,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:43010,016,7821,117,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 8, 2026 22:183,32217,276,1821,949,000974,0002,375,680
5Feb 8, 2026 22:183,32424,651,0191,950,000975,0002,531,328
6Feb 8, 2026 22:183,32624,127,8222,927,00002,383,872
7Feb 8, 2026 22:183,32823,830,0651,953,000976,0002,379,776
8Feb 8, 2026 22:183,33221,471,8872,932,00002,371,584
9Feb 8, 2026 22:183,33524,945,6331,957,000978,0002,371,584
10Feb 8, 2026 22:183,41617,270,1622,004,0001,002,0002,379,776
11Feb 8, 2026 22:183,44120,573,5252,019,0001,009,0002,367,488
12Feb 8, 2026 22:193,44320,578,7771,010,0002,020,0002,375,680
13Feb 8, 2026 22:193,45121,528,2812,025,0001,012,0002,367,488
14Feb 8, 2026 22:183,45118,347,6681,012,0002,025,0002,375,680
15Feb 8, 2026 22:193,45521,787,1932,027,0001,013,0002,375,680
16Feb 8, 2026 22:183,45823,213,2131,014,0002,029,0002,482,176
17Feb 8, 2026 22:183,46821,807,8732,035,0001,017,0002,383,872
18Feb 8, 2026 22:183,78220,586,0553,328,00002,367,488