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 05:59mgildermgilderScore: 104,947Success
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 05:59103,867113,389,55490,399,0001,004,0002,465,792
2Jan 18, 2026 05:59104,430117,969,75189,901,0001,997,0002,363,392
3Jan 18, 2026 05:59104,695115,609,82990,130,0002,002,0002,289,664
4Jan 18, 2026 05:59104,892118,653,42591,302,0001,003,0002,289,664
5Jan 18, 2026 05:59104,947117,382,65592,353,00002,363,392
6Jan 18, 2026 05:59105,123112,194,44191,503,0001,005,0002,359,296
7Jan 18, 2026 05:59105,283117,727,89592,649,00002,289,664
8Jan 18, 2026 05:59105,290125,732,01091,648,0001,007,0002,289,664
9Jan 18, 2026 05:59105,715118,806,24491,029,0002,000,0002,289,664