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 listJun 10, 2026 18:16Victor MerckléVictor MerckléScore: 8,668Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2026 18:198,54817,885,4286,235,0001,288,0002,142,208
2Jun 10, 2026 18:198,56016,201,0936,366,0001,167,0002,142,208
3Jun 10, 2026 18:198,59216,957,2396,418,0001,143,0002,142,208
4Jun 10, 2026 18:198,59516,246,6816,404,0001,160,0002,142,208
5Jun 10, 2026 18:198,66817,025,3236,388,0001,240,0002,142,208
6Jun 10, 2026 18:198,68417,152,0616,250,0001,392,0002,142,208
7Jun 10, 2026 18:198,68616,517,5756,343,0001,301,0002,142,208
8Jun 10, 2026 18:198,70415,088,4976,338,0001,322,0002,142,208
9Jun 10, 2026 18:198,74616,873,5666,485,0001,212,0002,142,208