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 6, 2026 01:09zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:39M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:39012,993,1201,207,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:3909,757,7291,191,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:3908,640,1811,115,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 25, 2026 01:153,37820,988,4011,982,000991,0002,359,296
5Jan 25, 2026 01:153,38924,718,5161,988,000994,0002,359,296
6Jan 25, 2026 23:333,39317,507,4101,991,000995,0002,359,296
7Feb 6, 2026 01:093,41919,268,6702,006,0001,003,0002,359,296
8Jan 25, 2026 01:153,42021,714,6942,007,0001,003,0002,277,376
9Jan 25, 2026 23:333,45820,978,8952,029,0001,014,0002,347,008
10Jan 25, 2026 23:333,55015,620,3362,083,0001,041,0002,363,392
11Feb 6, 2026 01:094,20817,491,8262,469,0001,234,0002,355,200
12Feb 6, 2026 01:094,45224,795,6201,959,0001,959,0002,535,424