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 20:25Johan SannemoJohan SannemoScore: 80,291Success
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 20:2579,71990,706,68268,149,0002,004,0002,519,040
2Jan 19, 2026 20:2579,99393,134,89169,389,0001,005,0002,281,472
3Jan 19, 2026 20:2579,99593,827,35369,391,0001,005,0002,523,136
4Jan 19, 2026 20:2580,19892,716,27169,566,0001,008,0002,281,472
5Jan 19, 2026 20:2580,29194,929,36269,647,0001,009,0002,510,848
6Jan 19, 2026 20:2580,31599,863,64670,677,00002,523,136
7Jan 19, 2026 20:2580,38397,254,09969,727,0001,010,0002,347,008
8Jan 19, 2026 20:2580,41795,696,62869,757,0001,010,0002,523,136
9Jan 19, 2026 20:2580,48694,054,41668,833,0001,995,0002,519,040