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 11, 2026 05:54Victor MerckléVictor MerckléScore: 8,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 05:578,54514,939,2717,520,00002,113,536
2Jun 11, 2026 05:578,55615,239,6807,530,00002,113,536
3Jun 11, 2026 05:578,58015,281,4467,551,00002,113,536
4Jun 11, 2026 05:578,59214,958,9407,561,00002,113,536
5Jun 11, 2026 05:578,64315,336,8737,606,00002,113,536
6Jun 11, 2026 05:578,68714,905,2887,645,00002,113,536
7Jun 11, 2026 05:578,73115,050,2217,684,00002,113,536
8Jun 11, 2026 05:578,75015,218,5167,700,00002,113,536
9Jun 11, 2026 05:578,81715,106,6447,759,00002,113,536