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 2, 2026 06:16Victor MerckléVictor MerckléScore: 6,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 06:196,43213,432,3205,661,00002,117,632stderr
2Jul 2, 2026 06:196,47713,497,5755,700,00002,117,632stderr
3Jul 2, 2026 06:196,53113,459,9745,748,00002,117,632stderr
4Jul 2, 2026 06:196,54213,789,9715,757,00002,117,632stderr
5Jul 2, 2026 06:196,54713,437,9925,762,00002,117,632stderr
6Jul 2, 2026 06:196,55213,310,5305,766,00002,117,632stderr
7Jul 2, 2026 06:196,57313,487,1415,785,00002,117,632stderr
8Jul 2, 2026 06:196,57913,460,3425,790,00002,117,632stderr
9Jul 2, 2026 06:196,58113,838,9865,792,00002,117,632stderr