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 listMar 19, 2026 23:33olliecrowolliecrowScore: 17,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 23:3317,43441,240,57315,342,00002,523,136
2Mar 19, 2026 23:3317,51640,648,96415,414,00002,433,024
3Mar 19, 2026 23:3317,52037,863,52315,418,00002,498,560
4Mar 19, 2026 23:3317,52635,439,61015,423,00002,396,160
5Mar 19, 2026 23:3317,53238,715,93115,428,00002,347,008
6Mar 19, 2026 23:3317,54231,769,38915,437,00002,514,944
7Mar 19, 2026 23:3317,56431,484,40515,456,00002,519,040
8Mar 19, 2026 23:3317,61140,971,93315,498,00002,498,560
9Mar 19, 2026 23:3317,62532,555,21215,510,00002,445,312