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 9, 2026 02:24zielajzielajScore: 3,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 9, 2026 02:143,29819,518,2921,935,000967,0002,506,752
2Feb 9, 2026 02:163,30819,322,4481,941,000970,0002,527,232
3Feb 9, 2026 01:263,31022,193,1922,913,00002,375,680
4Feb 9, 2026 01:263,31719,294,9511,946,000973,0002,527,232
5Feb 9, 2026 01:263,31716,156,4181,946,000973,0002,379,776
6Feb 9, 2026 02:183,31719,570,5502,919,00002,506,752
7Feb 9, 2026 01:263,31815,618,7421,947,000973,0002,379,776
8Feb 9, 2026 01:253,31921,143,8752,921,00002,379,776
9Feb 9, 2026 02:183,32218,065,5181,949,000974,0002,379,776
10Feb 9, 2026 01:263,32324,526,4202,924,00002,379,776
11Feb 9, 2026 02:143,32322,103,2472,924,00002,371,584
12Feb 9, 2026 01:263,32420,716,5351,950,000975,0002,527,232
13Feb 9, 2026 02:183,32420,150,8171,950,000975,0002,383,872
14Feb 9, 2026 01:293,32424,376,6491,950,000975,0002,375,680
15Feb 9, 2026 02:253,32418,519,0121,950,000975,0002,379,776
16Feb 9, 2026 02:243,32521,121,6371,951,000975,0002,371,584
17Feb 9, 2026 02:183,32720,829,2561,952,000976,0002,379,776
18Feb 9, 2026 01:253,32718,402,4761,952,000976,0002,379,776
19Feb 9, 2026 02:253,33118,385,4041,954,000977,0002,375,680
20Feb 9, 2026 02:183,33120,077,9641,954,000977,0002,535,424
21Feb 9, 2026 01:263,33118,722,0941,954,000977,0002,383,872
22Feb 9, 2026 02:163,33417,129,0631,956,000978,0002,527,232
23Feb 9, 2026 02:163,33520,182,2412,935,00002,379,776
24Feb 9, 2026 02:263,33521,196,7861,957,000978,0002,535,424
25Feb 9, 2026 01:263,33522,708,5542,935,00002,379,776
26Feb 9, 2026 02:183,36618,394,7531,975,000987,0002,375,680
27Feb 9, 2026 02:143,38617,946,5971,987,000993,0002,277,376
28Feb 9, 2026 02:183,40617,850,7661,998,000999,0002,383,872
29Feb 9, 2026 02:183,40920,271,7402,000,0001,000,0002,277,376
30Feb 9, 2026 02:183,42018,392,3272,007,0001,003,0002,379,776
31Feb 9, 2026 01:293,42717,387,2061,005,0002,011,0002,379,776
32Feb 9, 2026 01:303,43617,086,5421,008,0002,016,0002,277,376
33Feb 9, 2026 02:263,44022,471,5672,018,0001,009,0002,379,776
34Feb 9, 2026 01:303,46520,043,4642,033,0001,016,0002,383,872
35Feb 9, 2026 01:303,48918,213,7882,047,0001,023,0002,375,680
36Feb 9, 2026 02:264,07819,776,0133,589,00002,375,680
37Feb 9, 2026 01:264,09119,453,1073,600,00002,531,328
38Feb 9, 2026 02:254,10319,123,7023,611,00002,375,680
39Feb 9, 2026 02:244,16618,155,5883,666,00002,527,232
40Feb 9, 2026 01:294,19322,151,5572,460,0001,230,0002,375,680
41Feb 9, 2026 01:254,23520,819,6023,727,00002,379,776
42Feb 9, 2026 02:244,27818,037,1413,765,00002,371,584