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:44mgildermgilderScore: 241,209Success
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:44239,727244,546,512208,961,0001,999,0002,289,664
2Jan 16, 2026 04:44240,744238,695,880209,857,0001,998,0002,289,664
3Jan 16, 2026 04:44240,824237,909,165210,926,000999,0002,289,664
4Jan 16, 2026 04:44240,876236,190,330210,972,000999,0002,289,664
5Jan 16, 2026 04:44241,209238,738,203211,263,0001,001,0002,375,680
6Jan 16, 2026 04:44241,759242,253,302210,751,0001,997,0002,359,296
7Jan 16, 2026 04:44241,863241,910,996210,841,0001,998,0002,289,664
8Jan 16, 2026 04:44242,636238,631,613213,520,00002,367,488
9Jan 16, 2026 04:44244,858242,293,720214,473,0001,002,0002,289,664