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 4, 2026 23:50vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:06M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0608,419,8571,280,00002,113,536expected "6442459076 ", got "8136 "
2May 17, 2026 07:0609,285,2831,197,00002,113,536expected "6442459076 ", got "8136 "
3May 17, 2026 07:0608,476,3311,207,00002,113,536expected "6442459076 ", got "8136 "
4Feb 4, 2026 23:503,46424,071,3311,016,0002,032,0002,494,464
5Feb 4, 2026 23:503,46720,260,6971,017,0002,034,0002,498,560
6Feb 4, 2026 23:503,47019,133,4241,018,0002,036,0002,281,472
7Feb 4, 2026 23:493,47417,406,1811,019,0002,038,0002,490,368
8Feb 4, 2026 23:493,47824,425,5371,020,0002,041,0002,498,560
9Feb 4, 2026 23:503,47818,555,3891,020,0002,041,0002,535,424
10Feb 4, 2026 23:503,48423,212,8331,022,0002,044,0002,498,560
11Feb 4, 2026 23:493,48524,324,2291,022,0002,045,0002,494,464
12Feb 4, 2026 23:503,50824,732,5561,029,0002,058,0002,494,464
13Feb 4, 2026 23:503,53325,046,5431,036,0002,073,0002,498,560
14Feb 4, 2026 23:503,64916,352,2261,070,0002,141,0002,494,464
15Feb 4, 2026 23:503,69221,360,2091,083,0002,166,0002,277,376