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 listApr 28, 2026 16:51Charles CabergsCharles CabergsScore: 26,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 16:5426,79440,224,00721,529,0002,050,0002,527,232stderr
2Apr 28, 2026 16:5426,85341,029,17120,549,0003,082,0002,527,232stderr
3Apr 28, 2026 16:5426,92040,793,79721,630,0002,060,0002,523,136stderr
4Apr 28, 2026 16:5426,94346,287,36121,649,0002,061,0002,519,040stderr
5Apr 28, 2026 16:5426,98839,597,56321,685,0002,065,0002,523,136stderr
6Apr 28, 2026 16:5427,00739,590,59921,701,0002,066,0002,527,232stderr
7Apr 28, 2026 16:5427,01144,241,99022,737,0001,033,0002,306,048stderr
8Apr 28, 2026 16:5427,07039,130,80119,852,0003,970,0002,531,328stderr
9Apr 28, 2026 16:5427,09240,771,64920,861,0002,980,0002,519,040stderr