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 5, 2026 17:19vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:14010,237,4081,208,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:1408,648,0291,206,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:1409,402,3391,212,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 17:193,42617,543,1831,005,0002,010,0002,494,464
5Feb 5, 2026 17:193,45520,869,4041,013,0002,027,0002,494,464
6Feb 5, 2026 17:193,48225,732,9931,021,0002,043,0002,502,656
7Feb 5, 2026 17:193,48424,495,6621,022,0002,044,0002,498,560
8Feb 5, 2026 17:193,48524,825,6511,022,0002,045,0002,498,560
9Feb 5, 2026 17:193,48821,381,8431,023,0002,046,0002,277,376
10Feb 5, 2026 17:193,48922,343,5261,023,0002,047,0002,494,464
11Feb 5, 2026 17:193,48920,903,6071,023,0002,047,0002,494,464
12Feb 5, 2026 17:193,49817,902,9891,026,0002,052,0002,498,560
13Feb 5, 2026 17:193,51817,407,8861,032,0002,064,0002,535,424
14Feb 5, 2026 17:193,51822,236,8321,032,0002,064,0002,498,560
15Feb 5, 2026 17:193,52615,621,9691,034,0002,069,0002,494,464