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:28vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:07M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:07011,465,4851,205,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:07010,766,8541,202,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:07011,316,1901,201,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 17:283,45319,943,6021,013,0002,026,0002,535,424
5Feb 5, 2026 17:283,45820,243,9111,014,0002,029,0002,494,464
6Feb 5, 2026 17:283,46022,324,6801,015,0002,030,0002,498,560
7Feb 5, 2026 17:283,46524,708,0621,016,0002,033,0002,494,464
8Feb 5, 2026 17:283,47017,285,1841,018,0002,036,0002,281,472
9Feb 5, 2026 17:283,48419,746,8101,022,0002,044,0002,502,656
10Feb 5, 2026 17:283,48418,953,8561,022,0002,044,0002,498,560
11Feb 5, 2026 17:283,49520,922,2451,025,0002,051,0002,494,464
12Feb 5, 2026 17:283,49923,949,4811,026,0002,053,0002,498,560
13Feb 5, 2026 17:283,50921,407,2501,029,0002,059,0002,498,560
14Feb 5, 2026 17:283,52216,409,4191,033,0002,066,0002,494,464
15Feb 5, 2026 17:283,52520,063,5761,034,0002,068,0002,535,424