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 5, 2026 05:38Victor MerckléVictor MerckléScore: 4,545Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 05:414,42111,723,8843,891,00002,117,632stderr
2Jul 5, 2026 05:414,42511,774,9033,894,00002,117,632stderr
3Jul 5, 2026 05:414,42811,788,2813,897,00002,117,632stderr
4Jul 5, 2026 05:414,43911,732,8243,907,00002,117,632stderr
5Jul 5, 2026 05:414,54511,796,0604,000,00002,117,632stderr
6Jul 5, 2026 05:414,55111,806,4624,005,00002,117,632stderr
7Jul 5, 2026 05:414,55511,754,0994,009,00002,117,632stderr
8Jul 5, 2026 05:414,56712,078,5204,019,00002,117,632stderr
9Jul 5, 2026 05:414,56912,124,6554,021,00002,117,632stderr