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 19:29Victor MerckléVictor MerckléScore: 7,519Success
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 19:327,50114,161,8936,601,00002,113,536
2Jun 9, 2026 19:327,50613,964,6576,606,00002,113,536
3Jun 9, 2026 19:327,51514,031,5166,614,00002,113,536
4Jun 9, 2026 19:327,51714,029,3236,615,00002,113,536
5Jun 9, 2026 19:327,51914,276,0136,617,00002,113,536
6Jun 9, 2026 19:327,52013,792,5176,618,00002,113,536
7Jun 9, 2026 19:327,52613,772,9106,623,00002,113,536
8Jun 9, 2026 19:327,52713,799,3136,624,00002,113,536
9Jun 9, 2026 19:327,66814,111,9286,748,00002,113,536