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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:11M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:11011,356,9541,182,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:11011,351,4061,191,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:11011,337,2901,174,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 19:113,32720,841,936976,0001,952,0002,498,560
5Feb 7, 2026 19:113,34120,691,435980,0001,960,0002,502,656
6Feb 7, 2026 19:113,34523,276,610981,0001,963,0002,494,464
7Feb 7, 2026 19:103,34916,778,495982,0001,965,0002,490,368
8Feb 7, 2026 19:103,35518,265,0441,476,0001,476,0002,277,376
9Feb 7, 2026 19:103,36120,471,2281,479,0001,479,0002,506,752
10Feb 7, 2026 19:113,36518,220,019987,0001,974,0002,277,376
11Feb 7, 2026 19:103,36522,245,932987,0001,974,0002,494,464
12Feb 7, 2026 19:103,37623,784,876990,0001,981,0002,277,376
13Feb 7, 2026 19:103,37623,502,698990,0001,981,0002,502,656
14Feb 7, 2026 19:113,38219,726,368992,0001,984,0002,502,656
15Feb 7, 2026 19:103,38520,788,691993,0001,986,0002,486,272
16Feb 7, 2026 19:103,39016,220,347994,0001,989,0002,490,368
17Feb 7, 2026 19:113,39021,203,306994,0001,989,0002,494,464
18Feb 7, 2026 19:103,39321,606,684995,0001,991,0002,498,560
19Feb 7, 2026 19:113,39319,738,719995,0001,991,0002,494,464
20Feb 7, 2026 19:113,39918,564,640997,0001,994,0002,490,368
21Feb 7, 2026 19:113,46015,715,3141,015,0002,030,0002,535,424