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 31, 2026 18:18vahookvahookScore: 4,456Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 31, 2026 18:184,44320,407,0652,933,000977,0002,277,376
2Jan 31, 2026 18:184,44821,236,8621,957,0001,957,0002,277,376
3Jan 31, 2026 18:184,45222,249,0851,959,0001,959,0002,527,232
4Jan 31, 2026 18:184,45221,784,2631,959,0001,959,0002,523,136
5Jan 31, 2026 18:184,45619,801,3402,941,000980,0002,482,176
6Jan 31, 2026 18:184,45718,250,4541,961,0001,961,0002,478,080
7Jan 31, 2026 18:184,45920,502,8871,962,0001,962,0002,486,272
8Jan 31, 2026 18:184,46128,482,9172,945,000981,0002,486,272
9Jan 31, 2026 18:184,48422,691,8481,973,0001,973,0002,277,376