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 19, 2026 22:56Johan SannemoJohan SannemoScore: 30,559Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 22:5630,36654,448,51425,695,0001,027,0002,277,376
2Jan 19, 2026 22:5630,36956,253,58225,698,0001,027,0002,281,472
3Jan 19, 2026 22:5630,38359,396,13825,709,0001,028,0002,519,040
4Jan 19, 2026 22:5630,51552,204,62524,864,0001,989,0002,269,184
5Jan 19, 2026 22:5630,55955,999,80124,900,0001,992,0002,277,376
6Jan 19, 2026 22:5630,56353,943,38925,899,000996,0002,519,040
7Jan 19, 2026 22:5630,61347,878,00624,944,0001,995,0002,277,376
8Jan 19, 2026 22:5630,62848,709,44524,957,0001,996,0002,277,376
9Jan 19, 2026 22:5630,68251,259,15225,000,0002,000,0002,281,472