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 20, 2026 12:55zielajzielajScore: 3,313Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 12:583,10718,740,0682,734,00002,437,120
2Feb 22, 2026 03:053,11021,277,5332,737,00002,437,120
3Feb 20, 2026 12:583,11419,985,3332,740,00002,433,024
4Feb 20, 2026 12:553,12017,968,0602,746,00002,433,024
5Feb 22, 2026 03:063,12517,066,7102,750,00002,424,832
6Feb 20, 2026 12:583,13018,007,3622,754,00002,433,024
7Feb 22, 2026 03:033,13422,240,9342,758,00002,433,024
8Feb 20, 2026 12:553,13618,434,9372,760,00002,437,120
9Feb 22, 2026 03:033,13619,242,7902,760,00002,441,216
10Feb 22, 2026 03:033,14218,605,0352,765,00002,437,120
11Feb 20, 2026 12:583,14314,597,2362,766,00002,437,120
12Feb 20, 2026 12:573,14719,145,9962,769,00002,433,024
13Feb 20, 2026 12:573,15223,311,1972,774,00002,433,024
14Feb 20, 2026 12:553,15320,024,3652,775,00002,437,120
15Feb 20, 2026 12:563,15318,282,9152,775,00002,433,024
16Feb 20, 2026 12:553,15620,928,9662,777,00002,433,024
17Feb 22, 2026 03:063,16120,112,0422,782,00002,277,376
18Feb 20, 2026 12:573,16420,073,0922,784,00002,441,216
19Feb 20, 2026 12:553,16618,035,8672,786,00002,428,928
20Feb 22, 2026 03:053,30719,337,6692,910,00002,535,424
21Feb 20, 2026 12:553,30716,886,0071,940,000970,0002,437,120
22Feb 20, 2026 12:583,31121,222,5821,943,000971,0002,437,120
23Feb 20, 2026 12:583,31316,532,7772,915,00002,428,928
24Feb 20, 2026 12:543,31522,700,3812,917,00002,433,024
25Feb 20, 2026 12:553,31816,985,4351,947,000973,0002,433,024
26Feb 22, 2026 03:033,32017,104,9201,948,000974,0002,437,120
27Feb 22, 2026 03:063,32020,460,5642,922,00002,437,120
28Feb 20, 2026 12:543,32020,264,8101,948,000974,0002,437,120
29Feb 20, 2026 12:563,32220,884,9921,949,000974,0002,523,136
30Feb 22, 2026 03:063,32417,541,9871,950,000975,0002,437,120
31Feb 20, 2026 12:553,32422,216,168975,0001,950,0002,428,928
32Feb 20, 2026 12:583,32518,551,8161,951,000975,0002,445,312
33Feb 20, 2026 12:553,32522,382,5051,951,000975,0002,428,928
34Feb 20, 2026 12:583,32816,085,3961,953,000976,0002,437,120
35Feb 22, 2026 03:053,34820,392,9241,964,000982,0002,277,376
36Feb 22, 2026 03:033,41019,182,7772,001,0001,000,0002,437,120
37Feb 22, 2026 03:063,45521,815,0112,027,0001,013,0002,277,376
38Feb 22, 2026 03:033,60116,138,3002,113,0001,056,0002,428,928
39Feb 22, 2026 03:063,72519,439,1743,278,00002,437,120
40Feb 20, 2026 12:553,74521,676,7443,296,00002,535,424
41Feb 20, 2026 12:553,74722,503,0172,198,0001,099,0002,424,832
42Feb 20, 2026 12:563,74920,387,6253,299,00002,428,928
43Feb 20, 2026 12:543,77018,893,7623,318,00002,428,928
44Feb 20, 2026 12:583,81721,497,7033,359,00002,281,472
45Feb 20, 2026 12:553,82018,807,1143,362,00002,433,024