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 15:33Dominique GarmierDominique GarmierScore: 64,591Success
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 15:3364,15279,000,80855,446,0001,008,0002,281,472
2Mar 13, 2026 15:3364,24380,713,73756,534,00002,289,664
3Mar 13, 2026 15:3364,34478,651,95656,623,00002,289,664
4Mar 13, 2026 15:3364,44781,074,51855,701,0001,012,0002,289,664
5Mar 13, 2026 15:3364,59179,515,56355,843,000997,0002,281,472
6Mar 13, 2026 15:3364,61085,712,64654,862,0001,995,0002,289,664
7Mar 13, 2026 15:3364,63982,700,87054,887,0001,995,0002,289,664
8Mar 13, 2026 15:3364,73092,289,33154,964,0001,998,0002,293,760
9Mar 13, 2026 15:3365,07380,814,00055,255,0002,009,0002,289,664