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 16, 2026 23:19zielajzielajError
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:25010,305,5321,030,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2509,415,5531,055,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:25010,416,800949,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 16, 2026 23:223,31420,102,5191,944,000972,0002,437,120
5Feb 16, 2026 23:203,31716,690,5601,946,000973,0002,510,848
6Feb 16, 2026 23:203,31820,276,1431,947,000973,0002,428,928
7Feb 16, 2026 23:213,32216,794,6691,949,000974,0002,510,848
8Feb 16, 2026 23:193,32421,953,5272,925,00002,510,848
9Feb 16, 2026 23:193,37219,119,8421,978,000989,0002,437,120
10Feb 16, 2026 23:203,37315,734,7971,979,000989,0002,437,120
11Feb 16, 2026 23:213,37320,856,5732,968,00002,441,216
12Feb 16, 2026 23:223,40720,345,6951,999,000999,0002,433,024
13Feb 16, 2026 23:193,42422,660,1612,009,0001,004,0002,273,280
14Feb 16, 2026 23:213,44820,196,2642,023,0001,011,0002,531,328
15Feb 16, 2026 23:193,45720,430,2681,014,0002,028,0002,441,216
16Feb 16, 2026 23:193,45818,754,6151,014,0002,029,0002,437,120
17Feb 16, 2026 23:223,77722,711,9823,324,00002,437,120
18Feb 16, 2026 23:193,84722,514,8042,257,0001,128,0002,437,120