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 23, 2026 22:53zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1309,092,025986,00002,113,536expected "6442459076 ", got "2305422648 "
2May 17, 2026 05:1309,185,6111,118,00002,113,536expected "6442459076 ", got "2305422648 "
3May 17, 2026 05:1309,490,8591,123,00002,113,536expected "6442459076 ", got "2305422648 "
4Feb 23, 2026 22:523,08019,820,5722,710,00002,420,736
5Feb 23, 2026 22:533,08120,491,4522,711,00002,424,832
6Feb 23, 2026 22:523,08118,013,8122,711,00002,428,928
7Feb 23, 2026 22:523,08317,797,4302,713,00002,433,024
8Feb 23, 2026 22:543,08820,481,5802,717,00002,428,928
9Feb 23, 2026 22:523,09321,267,7232,722,00002,428,928
10Feb 23, 2026 22:543,10622,123,5052,733,00002,424,832
11Feb 23, 2026 22:533,11118,552,2362,738,00002,424,832
12Feb 23, 2026 22:553,11624,363,8882,742,00002,428,928
13Feb 23, 2026 22:523,11718,627,2592,743,00002,424,832
14Feb 23, 2026 22:523,11723,274,9412,743,00002,420,736
15Feb 23, 2026 22:553,11820,452,8262,744,00002,424,832
16Feb 23, 2026 22:553,12423,671,7822,749,00002,428,928
17Feb 23, 2026 22:533,12419,807,9952,749,00002,433,024
18Feb 23, 2026 22:523,13321,115,7432,757,00002,420,736
19Feb 23, 2026 22:523,13621,217,0832,760,00002,424,832
20Feb 23, 2026 22:553,14120,608,0862,764,00002,424,832
21Feb 23, 2026 22:523,16820,345,3892,788,00002,424,832
22Feb 23, 2026 22:533,28316,839,7481,926,000963,0002,277,376
23Feb 23, 2026 22:523,31820,713,8251,947,000973,0002,416,640
24Feb 23, 2026 22:533,32017,036,8741,948,000974,0002,277,376
25Feb 23, 2026 22:553,32220,608,3931,949,000974,0002,433,024
26Feb 23, 2026 22:523,33218,338,9392,932,00002,428,928
27Feb 23, 2026 22:553,59319,247,9482,108,0001,054,0002,420,736
28Feb 23, 2026 22:533,65816,043,1712,146,0001,073,0002,535,424
29Feb 23, 2026 22:543,71617,576,0623,270,00002,277,376
30Feb 23, 2026 22:523,71819,759,3503,272,00002,277,376