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 listMar 8, 2026 16:38zielajzielajScore: 3,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2026 16:382,99918,991,7432,639,00002,445,312
2Mar 8, 2026 16:383,02619,132,5882,663,00002,531,328
3Mar 8, 2026 16:383,02824,145,6622,665,00002,445,312
4Mar 8, 2026 16:383,02819,784,7182,665,00002,445,312
5Mar 8, 2026 16:383,05719,093,9412,690,00002,441,216
6Mar 8, 2026 16:383,13620,928,5602,760,00002,441,216
7Mar 8, 2026 16:383,13619,904,8772,760,00002,445,312
8Mar 8, 2026 16:383,16516,605,3042,785,00002,445,312
9Mar 8, 2026 16:383,16615,821,2542,786,00002,527,232
10Mar 8, 2026 16:383,16724,340,5822,787,00002,437,120
11Mar 8, 2026 16:383,17015,599,7752,790,00002,441,216
12Mar 8, 2026 16:383,31722,262,2161,946,000973,0002,445,312
13Mar 8, 2026 16:383,33522,202,5761,957,000978,0002,449,408
14Mar 8, 2026 16:383,43120,910,2062,013,0001,006,0002,441,216
15Mar 8, 2026 16:383,47519,418,8592,039,0001,019,0002,269,184
16Mar 8, 2026 16:383,55017,781,2802,083,0001,041,0002,433,024
17Mar 8, 2026 16:383,56719,675,2572,093,0001,046,0002,531,328
18Mar 8, 2026 16:383,69717,412,7632,169,0001,084,0002,433,024