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 listJul 6, 2026 04:45Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 04:46011,252,7093,401,00002,117,632expected "50807461613389 ", got "50807492189540 "stderr
2Jul 6, 2026 04:463,87011,247,9103,406,00002,117,632stderr
3Jul 6, 2026 04:463,88211,216,6733,417,00002,117,632stderr