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 13, 2026 05:01Victor MerckléVictor MerckléScore: 7,798Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 05:097,69714,159,8406,774,00002,113,536
2Jun 13, 2026 05:097,70314,205,3416,779,00002,113,536
3Jun 13, 2026 05:097,70914,166,3246,784,00002,113,536
4Jun 13, 2026 05:097,79214,313,4866,857,00002,113,536
5Jun 13, 2026 05:097,79814,191,7066,863,00002,113,536
6Jun 13, 2026 05:097,80714,200,3886,871,00002,113,536
7Jun 13, 2026 05:097,81314,260,9466,876,00002,113,536
8Jun 13, 2026 05:097,83514,266,7086,895,00002,113,536
9Jun 13, 2026 05:098,09214,474,3377,121,00002,113,536