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 8, 2026 00:21Victor MerckléVictor MerckléScore: 3,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 00:243,56211,031,2803,135,00002,117,632stderr
2Jul 8, 2026 00:243,57611,020,6913,147,00002,117,632stderr
3Jul 8, 2026 00:243,57711,105,8953,148,00002,117,632stderr
4Jul 8, 2026 00:243,60211,060,5263,170,00002,117,632stderr
5Jul 8, 2026 00:243,66411,033,3663,225,00002,117,632stderr
6Jul 8, 2026 00:243,67210,987,8003,232,00002,117,632stderr
7Jul 8, 2026 00:243,67311,054,3553,233,00002,117,632stderr
8Jul 8, 2026 00:243,69211,502,2293,249,00002,117,632stderr
9Jul 8, 2026 00:243,69411,018,1403,251,00002,117,632stderr