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 15, 2026 03:06zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:09M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0909,341,6441,181,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:0908,460,1601,254,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:09010,392,6051,435,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 15, 2026 03:063,36022,378,6532,957,00002,437,120
5Feb 15, 2026 03:073,43120,255,0072,013,0001,006,0002,433,024
6Feb 15, 2026 03:073,43120,162,1362,013,0001,006,0002,273,280
7Feb 15, 2026 03:063,48220,534,3382,043,0001,021,0002,437,120
8Feb 15, 2026 03:063,48424,268,9352,044,0001,022,0002,441,216
9Feb 15, 2026 03:073,52618,145,5452,069,0001,034,0002,433,024