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 18, 2026 05:21Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:28M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:28010,773,4271,430,00002,117,632expected "6442459076 ", got "2147489439 "
2May 17, 2026 07:2808,610,7901,444,00002,117,632expected "6442459076 ", got "2147489439 "
3May 17, 2026 07:2808,665,1021,397,00002,117,632expected "6442459076 ", got "2147489439 "
4Jan 18, 2026 05:2111,18025,218,9898,745,0001,093,0002,514,944
5Jan 18, 2026 05:2211,26723,515,6778,924,000991,0002,383,872
6Jan 18, 2026 05:2211,27027,588,4148,927,000991,0002,273,280
7Jan 18, 2026 05:2111,43326,773,8689,055,0001,006,0002,281,472
8Jan 18, 2026 05:2111,44924,726,3169,068,0001,007,0002,281,472
9Jan 18, 2026 05:2211,51925,603,1318,110,0002,027,0002,281,472