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 14, 2026 22:24olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 20:59Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:03026,926,98918,094,00002,113,536expected "20843851534670 ", got "14666402928398 "
2Oct 5, 2026 21:03019,330,24110,660,00002,113,536expected "40149956682412 ", got "28126170407267 "
3Oct 5, 2026 21:03025,701,95915,909,0001,004,0002,113,536expected "20546187692899 ", got "14765911760197 "
4Feb 14, 2026 22:2418,63029,885,09516,394,00002,478,080
5Feb 14, 2026 22:2418,66438,832,25216,424,00002,478,080
6Feb 14, 2026 22:2418,68136,456,84416,439,00002,482,176
7Feb 14, 2026 22:2418,68443,072,29916,442,00002,469,888
8Feb 14, 2026 22:2418,69730,612,95516,453,00002,473,984
9Feb 14, 2026 22:2418,70537,112,52416,460,00002,306,048
10Feb 14, 2026 22:2418,71838,951,61016,472,00002,473,984
11Feb 14, 2026 22:2418,81738,808,78416,559,00002,301,952
12Feb 14, 2026 22:2419,00742,115,15915,681,0001,045,0002,355,200