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 19, 2026 18:14Dominique GarmierDominique GarmierScore: 17,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 18:1417,75351,007,26214,582,0001,041,0002,351,104
2Mar 19, 2026 18:1417,76435,680,56414,590,0001,042,0002,351,104
3Mar 19, 2026 18:1417,78541,630,61415,651,00002,351,104
4Mar 19, 2026 18:1417,78830,991,85114,610,0001,043,0002,347,008
5Mar 19, 2026 18:1417,79530,882,70715,660,00002,355,200
6Mar 19, 2026 18:1417,80733,771,30414,626,0001,044,0002,355,200
7Mar 19, 2026 18:1417,85849,667,27014,668,0001,047,0002,351,104
8Mar 19, 2026 18:1417,86841,758,74915,724,00002,347,008
9Mar 19, 2026 18:1418,10146,132,39314,934,000995,0002,347,008