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 listApr 28, 2026 12:11Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:43013,781,3512,425,00002,117,632expected "6442459076 ", got "14623443812 "
2May 17, 2026 08:43011,368,6832,409,00002,117,632expected "6442459076 ", got "14623443812 "
3May 17, 2026 08:43013,353,2692,406,00002,117,632expected "6442459076 ", got "14623443812 "
4Apr 28, 2026 12:1210,43527,789,4468,163,0001,020,0002,367,488
5Apr 28, 2026 12:1210,48930,530,4847,180,0002,051,0002,371,584
6Apr 28, 2026 12:1210,49528,693,7817,184,0002,052,0002,367,488
7Apr 28, 2026 12:1210,51424,899,2109,253,00002,424,832
8Apr 28, 2026 12:1210,52327,803,2828,232,0001,029,0002,363,392
9Apr 28, 2026 12:1210,52826,647,2468,236,0001,029,0002,433,024
10Apr 28, 2026 12:1210,53026,066,3609,267,00002,371,584
11Apr 28, 2026 12:1210,53127,067,7879,268,00002,318,336
12Apr 28, 2026 12:1210,58227,642,5178,279,0001,034,0002,375,680