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 11:17Dominique GarmierDominique GarmierScore: 826,833Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 11:17821,118751,580,103720,586,0001,998,0002,289,664
2Mar 13, 2026 11:17821,667744,307,537722,067,0001,000,0002,498,560
3Mar 13, 2026 11:17823,036745,246,546723,272,0001,000,0002,285,568
4Mar 13, 2026 11:17823,525750,734,362722,703,0001,999,0002,289,664
5Mar 13, 2026 11:17826,833757,995,167725,615,0001,998,0002,289,664
6Mar 13, 2026 11:17828,755753,733,758728,304,0001,000,0002,281,472
7Mar 13, 2026 11:17829,138757,597,168727,642,0001,999,0002,494,464
8Mar 13, 2026 11:17830,431762,685,235728,780,0001,999,0002,502,656
9Mar 13, 2026 11:17830,459756,964,176729,805,000999,0002,289,664