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 listMar 13, 2026 16:16Dominique GarmierDominique GarmierScore: 59,228Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 13:0359,07077,782,19149,983,0001,999,0002,289,664
2Mar 14, 2026 13:0359,13877,973,91650,040,0002,001,0002,289,664
3Mar 13, 2026 16:1659,22675,226,69350,115,0002,004,0002,289,664
4Mar 13, 2026 16:1659,22876,711,74950,117,0002,004,0002,281,472
5Mar 13, 2026 16:1659,24878,371,48850,133,0002,005,0002,289,664
6Mar 14, 2026 13:0359,29375,871,01350,172,0002,006,0002,289,664