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:45mgildermgilderScore: 240,423Success
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:45239,580236,686,610209,831,000999,0002,359,296
2Jan 16, 2026 04:45240,060232,949,724210,252,0001,001,0002,293,760
3Jan 16, 2026 04:45240,144233,486,382211,327,00002,289,664
4Jan 16, 2026 04:45240,394237,674,781210,545,0001,002,0002,289,664
5Jan 16, 2026 04:45240,423233,856,302211,572,00002,359,296
6Jan 16, 2026 04:45241,084234,491,726210,153,0002,001,0002,289,664
7Jan 16, 2026 04:45241,831243,787,056212,811,00002,289,664
8Jan 16, 2026 04:45241,839239,399,700211,819,000999,0002,367,488
9Jan 16, 2026 04:45242,600236,246,394212,486,0001,002,0002,363,392