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:25zielajzielajScore: 3,183Success
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:233,12620,854,2812,751,00002,433,024
2Feb 21, 2026 21:233,13017,023,2652,754,00002,433,024
3Feb 21, 2026 21:233,14720,915,2742,769,00002,437,120
4Feb 21, 2026 21:233,15122,630,4602,773,00002,437,120
5Feb 21, 2026 21:233,15318,228,7002,775,00002,441,216
6Feb 21, 2026 21:253,15718,356,9852,778,00002,433,024
7Feb 21, 2026 21:253,16716,712,1682,787,00002,433,024
8Feb 21, 2026 21:233,16918,083,6172,789,00002,437,120
9Feb 21, 2026 21:233,17419,518,4952,793,00002,428,928
10Feb 21, 2026 21:233,17819,565,5042,797,00002,437,120
11Feb 21, 2026 21:253,18324,857,1102,801,00002,441,216
12Feb 21, 2026 21:243,18620,217,8262,804,00002,273,280
13Feb 21, 2026 21:233,31321,023,8142,915,00002,428,928
14Feb 21, 2026 21:243,31520,652,5391,945,000972,0002,424,832
15Feb 21, 2026 21:253,31718,634,4361,946,000973,0002,437,120
16Feb 21, 2026 21:253,32425,732,0052,925,00002,433,024
17Feb 21, 2026 21:233,32416,974,8901,950,000975,0002,433,024
18Feb 21, 2026 21:233,34517,012,3561,963,000981,0002,445,312
19Feb 21, 2026 21:253,61424,962,3202,120,0001,060,0002,428,928
20Feb 21, 2026 21:233,87224,660,8073,407,00002,433,024
21Feb 21, 2026 21:243,93124,158,4983,459,00002,277,376