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 00:42zielajzielajScore: 3,320Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2026 20:063,11617,879,5102,742,00002,441,216
2Feb 19, 2026 20:063,13823,410,0372,761,00002,437,120
3Feb 19, 2026 20:063,14520,862,6302,768,00002,433,024
4Feb 19, 2026 20:063,15620,722,7122,777,00002,433,024
5Feb 19, 2026 20:063,15619,028,6952,777,00002,433,024
6Feb 19, 2026 20:063,16423,162,9512,784,00002,437,120
7Feb 19, 2026 20:133,17020,388,0512,790,00002,433,024
8Feb 19, 2026 20:093,17021,428,3842,790,00002,424,832
9Feb 19, 2026 20:073,17322,232,3882,792,00002,433,024
10Feb 19, 2026 20:063,18119,805,3202,799,00002,519,040
11Feb 19, 2026 20:093,18123,318,1832,799,00002,437,120
12Feb 19, 2026 20:093,18616,847,2972,804,00002,437,120
13Feb 19, 2026 20:063,19017,805,6982,807,00002,445,312
14Feb 19, 2026 20:063,19121,060,9852,808,00002,433,024
15Feb 19, 2026 20:073,19519,393,1112,812,00002,433,024
16Feb 19, 2026 20:123,26919,161,9791,918,000959,0002,531,328
17Feb 19, 2026 20:063,27317,852,412960,0001,920,0002,424,832
18Feb 19, 2026 20:063,32022,177,2611,948,000974,0002,437,120
19Feb 20, 2026 00:433,32018,825,466974,0001,948,0002,437,120
20Feb 19, 2026 20:063,32420,742,1871,950,000975,0002,437,120
21Feb 20, 2026 00:433,32516,093,3091,951,000975,0002,531,328
22Feb 19, 2026 20:133,32522,668,4321,951,000975,0002,437,120
23Feb 20, 2026 00:433,32718,009,0322,928,00002,433,024
24Feb 20, 2026 00:423,32719,530,6972,928,00002,428,928
25Feb 19, 2026 20:063,33822,011,1851,958,000979,0002,510,848
26Feb 19, 2026 20:063,34420,809,7731,962,000981,0002,441,216
27Feb 19, 2026 20:063,35917,812,1552,956,00002,437,120
28Feb 19, 2026 20:123,36118,309,4611,972,000986,0002,420,736
29Feb 19, 2026 20:063,44023,301,5422,018,0001,009,0002,433,024
30Feb 19, 2026 20:123,55221,032,2872,084,0001,042,0002,433,024
31Feb 19, 2026 20:133,68522,961,9272,162,0001,081,0002,424,832
32Feb 19, 2026 20:063,71919,337,0482,182,0001,091,0002,531,328
33Feb 19, 2026 20:063,78019,452,8933,326,00002,437,120
34Feb 19, 2026 20:073,80218,849,4283,346,00002,433,024
35Feb 20, 2026 00:423,86621,198,6133,402,00002,428,928
36Feb 20, 2026 00:423,89521,316,3333,428,00002,437,120