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 18, 2026 00:32mgildermgilderScore: 121,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 00:32121,189136,793,099105,640,0001,006,0002,351,104
2Jan 18, 2026 00:32121,386131,351,952105,822,000998,0002,367,488
3Jan 18, 2026 00:32121,415133,628,505105,847,000998,0002,289,664
4Jan 18, 2026 00:32121,491134,771,068105,913,000999,0002,359,296
5Jan 18, 2026 00:32121,600132,116,834105,008,0002,000,0002,367,488
6Jan 18, 2026 00:32121,701126,263,005105,096,0002,001,0002,469,888
7Jan 18, 2026 00:32121,764133,222,663107,152,00002,289,664
8Jan 18, 2026 00:32121,995134,652,857107,356,00002,371,584
9Jan 18, 2026 00:32122,084128,190,347107,434,00002,289,664