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 20, 2026 14:12Johan SannemoJohan SannemoScore: 10,501Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 14:1210,36026,060,6967,091,0002,026,0002,514,944
2Jan 20, 2026 14:1210,43827,354,8487,144,0002,041,0002,490,368
3Jan 20, 2026 14:1210,46827,783,1197,165,0002,047,0002,285,568
4Jan 20, 2026 14:1210,49727,649,6577,185,0002,052,0002,494,464
5Jan 20, 2026 14:1210,50129,814,0587,188,0002,053,0002,289,664
6Jan 20, 2026 14:1210,52225,027,1636,173,0003,086,0002,289,664
7Jan 20, 2026 14:1210,55727,458,6137,226,0002,064,0002,285,568
8Jan 20, 2026 14:1210,57224,426,4856,202,0003,101,0002,506,752
9Jan 20, 2026 14:1210,65126,291,9887,290,0002,083,0002,289,664