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 20, 2026 01:52zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:18M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1909,183,6891,095,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:19010,373,8731,098,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:1909,815,5271,131,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 20, 2026 01:523,15716,061,5492,778,00002,437,120
5Feb 20, 2026 01:523,16518,194,2372,785,00002,428,928
6Feb 20, 2026 01:523,17416,094,7932,793,00002,531,328
7Feb 20, 2026 01:523,18423,499,2192,802,00002,531,328
8Feb 20, 2026 01:523,32818,821,2801,953,000976,0002,510,848
9Feb 20, 2026 01:523,50819,655,7462,058,0001,029,0002,437,120
10Feb 20, 2026 01:523,64817,330,7042,140,0001,070,0002,424,832
11Feb 20, 2026 01:523,87419,871,1613,409,00002,433,024
12Feb 20, 2026 01:523,91319,411,3173,443,00002,437,120