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 22:08olliecrowolliecrowScore: 12,297Success
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 22:0912,19334,276,2039,657,0001,073,0002,326,528
2Apr 28, 2026 22:0912,21833,494,5829,677,0001,075,0002,330,624
3Apr 28, 2026 22:0912,22728,132,10710,760,00002,580,480
4Apr 28, 2026 22:0912,27927,826,9469,726,0001,080,0002,318,336
5Apr 28, 2026 22:0912,29724,667,7959,740,0001,082,0002,338,816
6Apr 28, 2026 22:0912,32228,917,5449,760,0001,084,0002,326,528
7Apr 28, 2026 22:0912,33530,368,3668,882,0001,973,0002,342,912
8Apr 28, 2026 22:0912,38427,781,4868,917,0001,981,0002,400,256
9Apr 28, 2026 22:0912,42827,696,0188,949,0001,988,0002,338,816