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 listMar 9, 2026 00:51zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 30, 2026 18:06Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 18:06017,667,35201,257,000348,160No answer to stdout. Died or killed?
2Mar 9, 2026 00:522,94817,908,3172,594,00002,445,312
3Mar 9, 2026 00:522,94817,792,9582,594,00002,445,312
4Mar 9, 2026 00:502,95820,970,1492,603,00002,269,184
5Mar 9, 2026 00:512,97618,484,0742,619,00002,441,216
6Mar 9, 2026 00:502,99318,141,6732,634,00002,527,232
7Mar 9, 2026 00:523,00020,430,9822,640,00002,449,408
8Mar 9, 2026 00:523,00018,677,5492,640,00002,449,408
9Mar 9, 2026 00:503,00718,968,0102,646,00002,449,408
10Mar 9, 2026 00:503,00817,465,3612,647,00002,531,328
11Mar 9, 2026 00:513,00919,245,0212,648,00002,269,184
12Mar 9, 2026 00:523,02215,580,6372,659,00002,531,328
13Mar 9, 2026 00:503,10719,608,7932,734,00002,445,312
14Mar 9, 2026 00:513,13420,692,9042,758,00002,433,024
15Mar 9, 2026 00:513,15223,659,7522,774,00002,437,120
16Mar 9, 2026 00:513,45321,311,0662,026,0001,013,0002,273,280
17Mar 9, 2026 00:503,60322,001,0542,114,0001,057,0002,437,120
18Mar 9, 2026 00:523,60520,460,9082,115,0001,057,0002,437,120
19Mar 9, 2026 00:513,62016,546,1422,124,0001,062,0002,531,328