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:27Dominique GarmierDominique GarmierScore: 58,103Success
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:2757,93379,876,65048,982,0001,999,0002,289,664
2Mar 15, 2026 10:5257,95277,908,54549,999,000999,0002,289,664
3Mar 15, 2026 10:5258,05877,804,92049,088,0002,003,0002,289,664
4Mar 15, 2026 10:2758,10376,470,30649,126,0002,005,0002,281,472
5Mar 15, 2026 10:5258,28975,888,58749,283,0002,011,0002,281,472
6Mar 15, 2026 10:2758,34180,454,59249,327,0002,013,0002,281,472