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 6, 2026 05:59vahookvahookError
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:2608,492,3701,183,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 05:26010,104,3461,191,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 05:2608,472,7601,184,00002,113,536expected "6442459076 ", got " "
4Feb 6, 2026 05:593,39016,259,824994,0001,989,0002,482,176
5Feb 6, 2026 05:593,39516,384,524996,0001,992,0002,490,368
6Feb 6, 2026 05:593,39518,017,456996,0001,992,0002,494,464
7Feb 6, 2026 05:593,42018,837,5751,003,0002,007,0002,494,464
8Feb 6, 2026 05:593,42718,851,0951,005,0002,011,0002,502,656
9Feb 6, 2026 05:593,43017,939,7951,006,0002,012,0002,277,376
10Feb 6, 2026 05:593,43820,662,2091,008,0002,017,0002,277,376
11Feb 6, 2026 05:593,44121,509,0561,009,0002,019,0002,490,368
12Feb 6, 2026 05:593,44121,112,8971,009,0002,019,0002,277,376
13Feb 6, 2026 05:593,45320,411,1221,013,0002,026,0002,502,656
14Feb 6, 2026 05:593,45819,104,6181,014,0002,029,0002,486,272
15Feb 6, 2026 05:593,47018,726,6181,018,0002,036,0002,502,656