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 21, 2026 21:20zielajzielajScore: 3,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 21, 2026 21:163,10115,471,0222,729,00002,433,024
2Feb 21, 2026 21:163,11720,307,6582,743,00002,277,376
3Feb 21, 2026 21:163,12416,860,9252,749,00002,428,928
4Feb 21, 2026 21:083,14920,608,6252,771,00002,437,120
5Feb 21, 2026 21:143,14923,499,5312,771,00002,428,928
6Feb 21, 2026 21:183,15924,047,6752,780,00002,433,024
7Feb 21, 2026 21:163,16321,154,9732,783,00002,428,928
8Feb 21, 2026 21:093,16519,655,1782,785,00002,428,928
9Feb 21, 2026 21:163,16722,187,1942,787,00002,428,928
10Feb 21, 2026 21:163,16921,910,9582,789,00002,437,120
11Feb 21, 2026 21:163,17022,152,6312,790,00002,531,328
12Feb 21, 2026 21:183,17320,409,0282,792,00002,437,120
13Feb 21, 2026 21:103,17417,937,0752,793,00002,433,024
14Feb 21, 2026 21:093,17519,647,8282,794,00002,277,376
15Feb 21, 2026 21:093,18422,709,5742,802,00002,277,376
16Feb 21, 2026 21:083,19318,352,9172,810,00002,428,928
17Feb 21, 2026 21:113,27619,100,8861,922,000961,0002,433,024
18Feb 21, 2026 21:083,27715,425,7481,923,000961,0002,424,832
19Feb 21, 2026 21:103,30919,924,0572,912,00002,277,376
20Feb 21, 2026 21:093,31424,113,2212,916,00002,433,024
21Feb 21, 2026 21:143,31419,492,0052,916,00002,277,376
22Feb 21, 2026 21:093,31521,416,0401,945,000972,0002,441,216
23Feb 21, 2026 21:203,32425,076,2551,950,000975,0002,277,376
24Feb 21, 2026 21:083,32418,931,1452,925,00002,433,024
25Feb 21, 2026 21:113,32420,647,0662,925,00002,441,216
26Feb 21, 2026 21:083,32520,745,8921,951,000975,0002,433,024
27Feb 21, 2026 21:163,32721,772,6971,952,000976,0002,433,024
28Feb 21, 2026 21:113,32819,195,0962,929,00002,433,024
29Feb 21, 2026 21:213,33324,482,9742,933,00002,539,520
30Feb 21, 2026 21:123,33424,630,4961,956,000978,0002,437,120
31Feb 21, 2026 21:123,33520,951,6911,957,000978,0002,428,928
32Feb 21, 2026 21:103,33516,901,6271,957,000978,0002,441,216
33Feb 21, 2026 21:123,33519,991,4511,957,000978,0002,506,752
34Feb 21, 2026 21:163,34218,595,0461,961,000980,0002,428,928
35Feb 21, 2026 21:183,34518,179,7521,963,000981,0002,424,832
36Feb 21, 2026 21:213,35116,979,8051,966,000983,0002,437,120
37Feb 21, 2026 21:213,35519,130,1961,968,000984,0002,437,120
38Feb 21, 2026 21:203,35618,246,5742,953,00002,441,216
39Feb 21, 2026 21:163,42023,452,7612,007,0001,003,0002,281,472
40Feb 21, 2026 21:083,61117,709,4542,119,0001,059,0002,428,928
41Feb 21, 2026 21:203,75020,370,6483,300,00002,424,832
42Feb 21, 2026 21:163,76119,016,0602,207,0001,103,0002,277,376
43Feb 21, 2026 21:143,77717,669,2513,324,00002,433,024
44Feb 21, 2026 21:093,93019,076,0123,458,00002,433,024
45Feb 21, 2026 21:165,03618,044,5794,432,00002,433,024