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 10, 2026 04:25olliecrowolliecrowScore: 17,603Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2026 04:2517,51430,644,40715,412,00002,502,656
2Mar 10, 2026 04:2517,52629,236,51015,423,00002,375,680
3Mar 10, 2026 04:2517,55234,147,88115,446,00002,375,680
4Mar 10, 2026 04:2517,56835,979,32015,460,00002,330,624
5Mar 10, 2026 04:2517,60334,714,41814,459,0001,032,0002,494,464
6Mar 10, 2026 04:2517,66536,043,75515,545,00002,494,464
7Mar 10, 2026 04:2517,67532,138,33315,554,00002,273,280
8Mar 10, 2026 04:2517,69142,275,91015,568,00002,502,656
9Mar 10, 2026 04:2517,69730,255,95015,573,00002,318,336