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 20:47zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:24010,091,8621,032,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2408,357,0151,111,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2408,308,1791,032,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 15, 2026 20:473,29717,211,6611,934,000967,0002,510,848
5Feb 15, 2026 20:463,31620,744,3692,918,00002,510,848
6Feb 15, 2026 20:463,32820,682,4571,953,000976,0002,433,024
7Feb 15, 2026 20:473,34021,900,1862,939,00002,437,120
8Feb 15, 2026 20:473,34817,225,4791,964,000982,0002,441,216
9Feb 15, 2026 20:473,34819,650,9522,946,00002,277,376
10Feb 15, 2026 20:473,35019,406,3932,948,00002,437,120
11Feb 15, 2026 20:473,38318,005,0911,985,000992,0002,445,312
12Feb 15, 2026 20:463,42719,992,8572,011,0001,005,0002,281,472