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 listJan 16, 2026 04:42mgildermgilderScore: 241,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 04:42239,538236,726,166208,795,0001,998,0002,289,664
2Jan 16, 2026 04:42239,999240,636,571210,199,0001,000,0002,363,392
3Jan 16, 2026 04:42240,302236,790,124211,466,00002,289,664
4Jan 16, 2026 04:42240,743236,741,557209,856,0001,998,0002,355,200
5Jan 16, 2026 04:42241,028235,607,655211,105,0001,000,0002,289,664
6Jan 16, 2026 04:42241,033233,462,132211,109,0001,000,0002,289,664
7Jan 16, 2026 04:42241,189233,160,644211,245,0001,001,0002,289,664
8Jan 16, 2026 04:42241,994243,575,738211,956,000999,0002,359,296
9Jan 16, 2026 04:42242,982239,952,557211,826,0001,998,0002,289,664