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 9, 2026 20:07Victor MerckléVictor MerckléScore: 7,838Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 20:097,81014,045,3276,873,00002,113,536
2Jun 9, 2026 20:097,81915,708,0026,881,00002,113,536
3Jun 9, 2026 20:097,82514,075,6006,886,00002,113,536
4Jun 9, 2026 20:097,83014,224,8296,891,00002,113,536
5Jun 9, 2026 20:097,83814,378,0356,898,00002,113,536
6Jun 9, 2026 20:097,84614,224,7286,905,00002,113,536
7Jun 9, 2026 20:097,85014,399,5996,908,00002,113,536
8Jun 9, 2026 20:097,87714,258,3276,932,00002,113,536
9Jun 9, 2026 20:097,88814,429,7696,942,00002,113,536