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 15:37zielajzielajScore: 3,308Success
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 15:333,10222,689,6532,730,00002,437,120
2Feb 20, 2026 15:363,11318,115,2472,739,00002,441,216
3Feb 20, 2026 15:333,11617,068,3362,742,00002,433,024
4Feb 20, 2026 15:363,12218,732,2342,747,00002,433,024
5Feb 20, 2026 15:343,12322,136,2492,748,00002,433,024
6Feb 20, 2026 15:333,14418,153,9682,767,00002,433,024
7Feb 20, 2026 15:333,14817,007,2722,770,00002,437,120
8Feb 20, 2026 15:363,14823,533,2552,770,00002,441,216
9Feb 20, 2026 15:343,15117,567,1292,773,00002,535,424
10Feb 20, 2026 15:333,15519,883,0252,776,00002,428,928
11Feb 20, 2026 15:333,15618,779,4022,777,00002,535,424
12Feb 20, 2026 15:363,16318,324,1672,783,00002,535,424
13Feb 20, 2026 15:353,16416,351,4262,784,00002,424,832
14Feb 20, 2026 15:373,16525,378,8592,785,00002,428,928
15Feb 20, 2026 15:353,16916,319,1462,789,00002,437,120
16Feb 20, 2026 15:343,20325,048,8352,819,00002,424,832
17Feb 20, 2026 15:373,29823,197,4021,935,000967,0002,437,120
18Feb 20, 2026 15:343,30321,113,8411,938,000969,0002,433,024
19Feb 20, 2026 15:343,30818,158,8251,941,000970,0002,428,928
20Feb 20, 2026 15:363,30816,108,5311,941,000970,0002,433,024
21Feb 20, 2026 15:333,31123,831,3131,943,000971,0002,433,024
22Feb 20, 2026 15:373,31421,607,5651,944,000972,0002,535,424
23Feb 20, 2026 15:333,31517,186,6861,945,000972,0002,424,832
24Feb 20, 2026 15:343,32222,270,1751,949,000974,0002,519,040
25Feb 20, 2026 15:373,32521,316,2621,951,000975,0002,433,024
26Feb 20, 2026 15:363,33018,145,9912,930,00002,437,120
27Feb 20, 2026 15:373,35927,195,4871,971,000985,0002,433,024
28Feb 20, 2026 15:363,38920,539,2931,988,000994,0002,437,120
29Feb 20, 2026 15:373,58618,951,9912,104,0001,052,0002,424,832
30Feb 20, 2026 15:343,60119,243,6132,113,0001,056,0002,433,024
31Feb 20, 2026 15:343,64923,075,8862,141,0001,070,0002,437,120
32Feb 20, 2026 15:363,66517,801,1872,150,0001,075,0002,433,024
33Feb 20, 2026 15:333,69319,164,3143,250,00002,277,376
34Feb 20, 2026 15:353,76918,901,3433,317,00002,433,024
35Feb 20, 2026 15:363,85217,841,2963,390,00002,420,736
36Feb 20, 2026 15:343,92617,618,9083,455,00002,428,928