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 listMay 19, 2026 06:32Victor MerckléVictor MerckléScore: 9,559Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 06:369,50516,071,0178,365,00002,113,536
2May 19, 2026 06:369,52515,947,4688,382,00002,113,536
3May 19, 2026 06:369,52817,626,6378,385,00002,113,536
4May 19, 2026 06:369,53916,410,6118,395,00002,113,536
5May 19, 2026 06:369,55917,729,5928,412,00002,113,536
6May 19, 2026 06:369,56217,586,7428,415,00002,113,536
7May 19, 2026 06:369,61117,725,5228,458,00002,113,536
8May 19, 2026 06:369,61315,887,4828,460,00002,113,536
9May 19, 2026 06:369,67316,060,8598,513,00002,113,536