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 21:21vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:27M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2709,701,7421,197,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 05:2709,722,5401,192,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 05:2708,438,2201,204,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 21:213,38619,944,431993,0001,987,0002,277,376
5Feb 6, 2026 21:213,39718,302,148996,0001,993,0002,490,368
6Feb 6, 2026 21:213,42418,671,8181,004,0002,009,0002,277,376
7Feb 6, 2026 21:213,43024,628,6101,006,0002,012,0002,277,376
8Feb 6, 2026 21:213,43020,037,3461,006,0002,012,0002,277,376
9Feb 6, 2026 21:213,43821,206,2611,008,0002,017,0002,494,464
10Feb 6, 2026 21:213,45018,494,2551,012,0002,024,0002,494,464
11Feb 6, 2026 21:213,45318,830,7321,013,0002,026,0002,498,560
12Feb 6, 2026 21:213,45316,890,3171,013,0002,026,0002,277,376
13Feb 6, 2026 21:213,47523,118,5721,019,0002,039,0002,502,656
14Feb 6, 2026 21:213,50121,898,6451,027,0002,054,0002,494,464
15Feb 6, 2026 21:213,54718,719,9601,040,0002,081,0002,498,560