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 27, 2026 13:46SemyonSemyonScore: 1,071,616Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 27, 2026 13:461,067,667972,166,327934,550,0004,997,0002,265,088
2Jan 27, 2026 13:461,067,720968,655,316937,595,0001,999,0002,265,088
3Jan 27, 2026 13:461,068,310962,539,434939,113,0001,000,0002,265,088
4Jan 27, 2026 13:461,069,992969,764,153939,594,0001,999,0002,469,888
5Jan 27, 2026 13:461,071,616969,357,353942,022,0001,000,0002,478,080
6Jan 27, 2026 13:461,072,916962,530,187943,166,0001,000,0002,469,888
7Jan 27, 2026 13:461,073,882966,067,893942,016,0003,000,0002,478,080
8Jan 27, 2026 13:461,074,053973,243,848945,167,00002,465,792
9Jan 27, 2026 13:461,075,748969,473,708942,660,0003,998,0002,265,088