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 15, 2026 10:41Dominique GarmierDominique GarmierScore: 43,041Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 10:4142,68657,313,42836,549,0001,015,0002,289,664
2Mar 15, 2026 10:4142,73862,214,73037,609,00002,289,664
3Mar 15, 2026 10:4142,86663,402,12036,703,0001,019,0002,289,664
4Mar 15, 2026 10:4143,03664,001,74835,879,0001,993,0002,289,664
5Mar 15, 2026 10:4143,04164,896,26035,883,0001,993,0002,289,664
6Mar 15, 2026 10:4143,05963,497,67435,898,0001,994,0002,289,664
7Mar 15, 2026 10:4143,07264,215,22135,909,0001,994,0002,281,472
8Mar 15, 2026 10:4143,07769,737,42835,913,0001,995,0002,289,664
9Mar 15, 2026 10:4143,18466,281,97436,002,0002,000,0002,265,088