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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:19M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1908,270,9351,104,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:1909,139,1161,004,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:19010,049,6461,020,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 15, 2026 20:423,29918,505,8602,903,00002,428,928
5Feb 15, 2026 20:423,31116,307,4131,943,000971,0002,416,640
6Feb 15, 2026 20:403,31723,681,6001,946,000973,0002,412,544
7Feb 15, 2026 20:403,31819,007,8132,920,00002,420,736
8Feb 15, 2026 20:423,32019,701,5321,948,000974,0002,416,640
9Feb 15, 2026 20:403,32419,647,9991,950,000975,0002,428,928
10Feb 15, 2026 20:443,32420,189,7122,925,00002,510,848
11Feb 15, 2026 20:443,32516,486,8571,951,000975,0002,510,848
12Feb 15, 2026 20:423,32517,595,7521,951,000975,0002,428,928
13Feb 15, 2026 20:423,32717,425,6441,952,000976,0002,277,376
14Feb 15, 2026 20:423,33116,186,1471,954,000977,0002,277,376
15Feb 15, 2026 20:403,33116,066,6801,954,000977,0002,412,544
16Feb 15, 2026 20:423,33117,942,5751,954,000977,0002,420,736
17Feb 15, 2026 20:403,33221,599,9522,932,00002,510,848
18Feb 15, 2026 20:443,33617,480,5092,936,00002,420,736
19Feb 15, 2026 20:403,33822,124,0291,958,000979,0002,424,832
20Feb 15, 2026 20:403,34119,089,7841,960,000980,0002,531,328
21Feb 15, 2026 20:443,34416,989,6941,962,000981,0002,424,832
22Feb 15, 2026 20:413,34420,905,2512,943,00002,420,736
23Feb 15, 2026 20:443,34915,778,7011,965,000982,0002,510,848
24Feb 15, 2026 20:443,35121,673,7782,949,00002,420,736
25Feb 15, 2026 20:413,35819,816,4351,970,000985,0002,277,376
26Feb 15, 2026 20:403,41019,905,0362,001,0001,000,0002,416,640
27Feb 15, 2026 20:423,43424,296,5002,015,0001,007,0002,420,736
28Feb 15, 2026 20:403,45018,696,9722,024,0001,012,0002,424,832
29Feb 15, 2026 20:413,49223,435,5001,024,0002,049,0002,424,832
30Feb 15, 2026 20:424,16621,652,6493,666,00002,277,376