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 7, 2026 19:26vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 13:03Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 13:03018,698,8481,338,0001,338,0002,506,752expected "11061630420209 ", got "341521 "
2Apr 24, 2026 13:03018,783,7611,323,0001,323,0002,498,560expected "10939168110713 ", got "4023897 "
3Apr 24, 2026 13:03017,733,8801,352,0001,352,0002,502,656expected "11059328164440 ", got "1001369 "
4Feb 7, 2026 19:273,23529,583,4252,847,00002,506,752
5Feb 7, 2026 19:363,23822,456,0582,849,00002,273,280
6Feb 7, 2026 19:363,25622,444,3332,865,00002,273,280
7Feb 7, 2026 19:263,25918,200,1742,868,00002,273,280
8Feb 7, 2026 19:273,26525,404,6662,873,00002,510,848
9Feb 7, 2026 19:363,28117,003,6702,887,00002,273,280
10Feb 7, 2026 19:263,28420,665,5001,445,0001,445,0002,273,280
11Feb 7, 2026 19:273,28421,388,9112,890,00002,506,752
12Feb 7, 2026 19:263,28521,324,8592,891,00002,269,184
13Feb 7, 2026 19:323,28625,131,4692,892,00002,277,376
14Feb 7, 2026 19:363,28822,243,1502,893,00002,273,280
15Feb 7, 2026 19:323,28925,360,7312,894,00002,502,656
16Feb 7, 2026 19:273,29329,621,9332,898,00002,273,280
17Feb 7, 2026 19:363,29323,517,9272,898,00002,506,752
18Feb 7, 2026 19:323,29722,800,3182,901,00002,269,184
19Feb 7, 2026 19:273,29918,491,8462,903,00002,277,376
20Feb 7, 2026 19:323,30120,741,9222,905,00002,269,184
21Feb 7, 2026 19:323,30118,396,0172,905,00002,273,280
22Feb 7, 2026 19:263,30318,868,6402,907,00002,277,376
23Feb 7, 2026 19:323,30517,268,3262,908,00002,277,376
24Feb 7, 2026 19:363,30725,286,4382,910,00002,277,376
25Feb 7, 2026 19:323,30722,164,2702,910,00002,277,376
26Feb 7, 2026 19:363,30920,558,7252,912,00002,273,280
27Feb 7, 2026 19:323,31321,557,1472,915,00002,269,184
28Feb 7, 2026 19:263,31418,028,5222,916,00002,273,280
29Feb 7, 2026 19:263,31621,183,4562,918,00002,277,376
30Feb 7, 2026 19:263,32018,251,3692,922,00002,273,280
31Feb 7, 2026 19:273,32419,258,8982,925,00002,273,280
32Feb 7, 2026 19:363,33120,080,3712,931,00002,506,752
33Feb 7, 2026 19:273,33923,695,0182,938,00002,273,280
34Feb 7, 2026 19:273,34919,912,4622,947,00002,281,472
35Feb 7, 2026 19:323,36819,904,5152,964,00002,273,280
36Feb 7, 2026 19:273,39719,918,6702,989,00002,510,848
37Feb 7, 2026 19:263,42618,407,6043,015,00002,277,376
38Feb 7, 2026 19:263,45919,459,1813,044,00002,265,088
39Feb 7, 2026 19:363,48117,812,4563,063,00002,273,280