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 7, 2026 05:02vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:22M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2209,749,2011,192,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:22010,218,5901,189,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:2208,722,2311,198,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 05:023,33917,736,980979,0001,959,0002,277,376
5Feb 7, 2026 05:033,38323,533,717992,0001,985,0002,494,464
6Feb 7, 2026 05:023,38522,845,214993,0001,986,0002,494,464
7Feb 7, 2026 05:023,38520,028,876993,0001,986,0002,277,376
8Feb 7, 2026 05:033,39321,552,101995,0001,991,0002,498,560
9Feb 7, 2026 05:023,40326,577,106998,0001,997,0002,490,368
10Feb 7, 2026 05:033,43415,798,2131,007,0002,015,0002,490,368
11Feb 7, 2026 05:023,48222,398,9461,021,0002,043,0002,494,464
12Feb 7, 2026 05:023,49815,839,9981,026,0002,052,0002,494,464