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 18:17zielajzielajScore: 3,015Success
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 18:182,95317,077,2912,599,00002,441,216
2Mar 8, 2026 18:172,95515,480,6102,600,00002,445,312
3Mar 8, 2026 18:172,97715,852,2481,310,0001,310,0002,445,312
4Mar 8, 2026 18:172,98620,145,4282,628,00002,437,120
5Mar 8, 2026 18:182,99023,486,9212,631,00002,445,312
6Mar 8, 2026 18:172,99223,367,7482,633,00002,269,184
7Mar 8, 2026 18:182,99823,809,3662,638,00002,449,408
8Mar 8, 2026 18:183,00517,975,3462,644,00002,441,216
9Mar 8, 2026 18:183,01320,881,2862,651,00002,531,328
10Mar 8, 2026 18:183,01522,727,1802,653,00002,531,328
11Mar 8, 2026 18:173,03119,581,5722,667,00002,531,328
12Mar 8, 2026 18:173,09121,241,4522,720,00002,445,312
13Mar 8, 2026 18:173,15324,452,4452,775,00002,441,216
14Mar 8, 2026 18:173,16019,331,8182,781,00002,527,232
15Mar 8, 2026 18:173,18120,473,9702,799,00002,269,184
16Mar 8, 2026 18:173,18617,459,3972,804,00002,441,216
17Mar 8, 2026 18:173,20822,648,9642,823,00002,441,216
18Mar 8, 2026 18:173,58018,970,5342,100,0001,050,0002,441,216