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 listJan 25, 2026 01:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:1608,830,9451,163,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:16010,120,2141,053,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:1609,078,9011,105,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 25, 2026 01:143,36321,631,0231,973,000986,0002,355,200
5Jan 25, 2026 01:143,40020,600,1571,995,000997,0002,363,392
6Jan 25, 2026 01:143,46524,752,3332,033,0001,016,0002,363,392
7Jan 25, 2026 01:153,50125,780,0702,054,0001,027,0002,355,200
8Jan 25, 2026 01:153,82020,708,8843,362,00002,351,104
9Jan 25, 2026 01:154,28321,090,5853,769,00002,535,424