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 14, 2026 21:23zielajzielajScore: 3,403Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 21:193,31118,392,4841,943,000971,0002,433,024
2Feb 14, 2026 21:233,31418,039,3561,944,000972,0002,437,120
3Feb 15, 2026 01:553,31421,164,4001,944,000972,0002,428,928
4Feb 14, 2026 21:213,31522,569,1411,945,000972,0002,437,120
5Feb 14, 2026 21:213,31517,633,4181,945,000972,0002,437,120
6Feb 14, 2026 21:213,32217,338,2551,949,000974,0002,277,376
7Feb 14, 2026 21:213,32415,680,4792,925,00002,437,120
8Feb 14, 2026 21:243,32817,762,1132,929,00002,437,120
9Feb 15, 2026 01:553,32817,491,6562,929,00002,277,376
10Feb 14, 2026 21:243,33116,764,5331,954,000977,0002,445,312
11Feb 14, 2026 21:213,33118,059,8631,954,000977,0002,510,848
12Feb 14, 2026 21:193,36621,473,6931,975,000987,0002,437,120
13Feb 14, 2026 21:233,39722,403,6811,993,000996,0002,437,120
14Feb 14, 2026 21:233,39720,737,6641,993,000996,0002,445,312
15Feb 14, 2026 21:213,40320,283,642998,0001,997,0002,437,120
16Feb 14, 2026 21:193,40322,079,7151,997,000998,0002,281,472
17Feb 14, 2026 21:243,40721,685,5771,999,000999,0002,277,376
18Feb 14, 2026 21:193,41720,664,9462,005,0001,002,0002,433,024
19Feb 14, 2026 21:193,42618,443,0962,010,0001,005,0002,277,376
20Feb 14, 2026 21:213,42718,867,6952,011,0001,005,0002,441,216
21Feb 14, 2026 21:193,42726,605,5542,011,0001,005,0002,433,024
22Feb 14, 2026 21:233,42718,845,3822,011,0001,005,0002,437,120
23Feb 14, 2026 21:233,43316,528,0441,007,0002,014,0002,445,312
24Feb 14, 2026 21:233,44120,359,6822,019,0001,009,0002,433,024
25Feb 14, 2026 21:213,44323,686,4171,010,0002,020,0002,281,472
26Feb 14, 2026 21:233,44720,572,3222,022,0001,011,0002,531,328
27Feb 14, 2026 21:233,47017,578,3111,018,0002,036,0002,437,120
28Feb 15, 2026 01:553,49416,392,0151,025,0002,050,0002,433,024
29Feb 14, 2026 21:234,23918,753,7303,730,00002,277,376
30Feb 14, 2026 21:214,80721,937,1462,115,0002,115,0002,281,472