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 28, 2026 01:37zielajzielajScore: 3,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2026 01:383,06823,089,1692,700,00002,420,736
2Feb 28, 2026 01:383,07617,671,3892,707,00002,420,736
3Feb 28, 2026 01:383,08119,170,0692,711,00002,420,736
4Feb 28, 2026 01:383,09118,010,7722,720,00002,277,376
5Feb 28, 2026 01:383,09318,805,0702,722,00002,277,376
6Feb 28, 2026 01:383,09523,506,9242,724,00002,416,640
7Feb 28, 2026 01:383,10523,438,6482,732,00002,412,544
8Feb 28, 2026 01:383,10721,725,6362,734,00002,416,640
9Feb 28, 2026 01:323,10920,910,7642,736,00002,424,832
10Feb 28, 2026 01:383,11322,298,5452,739,00002,420,736
11Feb 28, 2026 01:373,12017,199,2402,746,00002,535,424
12Feb 28, 2026 01:373,12216,336,7542,747,00002,277,376
13Feb 28, 2026 01:323,12319,798,8282,748,00002,424,832
14Feb 28, 2026 01:383,12316,287,1062,748,00002,428,928
15Feb 28, 2026 01:323,12421,544,2052,749,00002,420,736
16Feb 28, 2026 01:323,12816,134,9532,753,00002,428,928
17Feb 28, 2026 01:383,13022,400,4802,754,00002,424,832
18Feb 28, 2026 01:373,13424,667,5642,758,00002,420,736
19Feb 28, 2026 01:323,15722,907,4692,778,00002,412,544
20Feb 28, 2026 01:383,16918,253,9222,789,00002,420,736
21Feb 28, 2026 01:383,21018,744,3562,825,00002,420,736
22Feb 28, 2026 01:383,27418,556,0741,921,000960,0002,420,736
23Feb 28, 2026 01:383,27619,257,0671,922,000961,0002,420,736
24Feb 28, 2026 01:323,30118,118,3531,937,000968,0002,416,640
25Feb 28, 2026 01:383,30222,760,8682,906,00002,535,424
26Feb 28, 2026 01:373,30819,077,1881,941,000970,0002,535,424
27Feb 28, 2026 01:323,31719,379,9801,946,000973,0002,420,736
28Feb 28, 2026 01:383,32020,809,2721,948,000974,0002,420,736
29Feb 28, 2026 01:323,34218,374,5301,961,000980,0002,535,424
30Feb 28, 2026 01:373,56718,387,9402,093,0001,046,0002,420,736
31Feb 28, 2026 01:373,61020,797,2102,118,0001,059,0002,416,640
32Feb 28, 2026 01:383,72716,698,3332,187,0001,093,0002,424,832
33Feb 28, 2026 01:323,78117,423,8233,327,00002,535,424