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 23:58zielajzielajScore: 3,327Success
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 23:533,09819,259,3602,726,00002,441,216
2Feb 20, 2026 23:523,11822,553,3892,744,00002,437,120
3Feb 20, 2026 23:533,13018,066,3462,754,00002,428,928
4Feb 20, 2026 23:533,14018,037,3702,763,00002,437,120
5Feb 20, 2026 23:543,15620,828,8132,777,00002,433,024
6Feb 20, 2026 23:543,18216,765,9042,800,00002,433,024
7Feb 20, 2026 23:523,18518,876,2062,803,00002,433,024
8Feb 20, 2026 23:563,30521,598,0431,939,000969,0002,437,120
9Feb 20, 2026 23:563,30922,749,4422,912,00002,433,024
10Feb 20, 2026 23:533,31423,391,1891,944,000972,0002,428,928
11Feb 20, 2026 23:523,31520,460,0522,917,00002,437,120
12Feb 20, 2026 23:533,31721,130,5261,946,000973,0002,510,848
13Feb 20, 2026 23:553,31820,639,7572,920,00002,433,024
14Feb 20, 2026 23:563,32223,438,5301,949,000974,0002,437,120
15Feb 20, 2026 23:533,32219,423,9581,949,000974,0002,437,120
16Feb 20, 2026 23:553,32721,316,4851,952,000976,0002,433,024
17Feb 20, 2026 23:533,32817,923,8521,953,000976,0002,428,928
18Feb 20, 2026 23:523,33018,763,3392,930,00002,437,120
19Feb 20, 2026 23:523,33419,911,2381,956,000978,0002,428,928
20Feb 20, 2026 23:533,33922,192,2711,959,000979,0002,441,216
21Feb 20, 2026 23:523,57617,689,5992,098,0001,049,0002,433,024
22Feb 20, 2026 23:583,60320,822,8192,114,0001,057,0002,428,928
23Feb 20, 2026 23:583,62420,817,1772,126,0001,063,0002,433,024
24Feb 20, 2026 23:533,66324,965,0922,149,0001,074,0002,277,376
25Feb 20, 2026 23:543,73218,039,1603,284,00002,277,376
26Feb 20, 2026 23:523,75122,932,7742,201,0001,100,0002,424,832
27Feb 20, 2026 23:553,79819,647,3683,342,00002,428,928
28Feb 20, 2026 23:583,80021,345,2573,344,00002,437,120
29Feb 20, 2026 23:523,93018,425,2713,458,00002,428,928
30Feb 20, 2026 23:524,81325,782,6224,235,00002,277,376