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 24, 2026 15:25Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:39M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:40015,296,1392,343,0002,352,0002,121,728expected "6442459076 ", got "50700646218 "
2May 17, 2026 08:40014,656,7082,336,0002,322,0002,121,728expected "6442459076 ", got "50700646218 "
3May 17, 2026 08:40014,410,8392,358,0002,461,0002,121,728expected "6442459076 ", got "50700646218 "
4Apr 24, 2026 15:2713,56831,438,1227,960,0003,980,0002,523,136
5Apr 24, 2026 15:2713,65431,536,6658,011,0004,005,0002,527,232
6Apr 24, 2026 15:2713,71532,427,7498,047,0004,023,0002,527,232
7Apr 24, 2026 15:2713,72525,986,7728,052,0004,026,0002,351,104
8Apr 24, 2026 15:2713,72833,576,4358,054,0004,027,0002,367,488
9Apr 24, 2026 15:2713,72928,756,6588,055,0004,027,0002,486,272
10Apr 24, 2026 15:2713,73632,724,3358,059,0004,029,0002,527,232
11Apr 24, 2026 15:2713,73831,030,2278,060,0004,030,0002,535,424
12Apr 24, 2026 15:2713,82726,844,4818,112,0004,056,0002,531,328