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 8, 2026 04:27olliecrowolliecrowScore: 15,144Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 8, 2026 04:2715,05333,786,35713,247,00002,265,088
2Apr 8, 2026 04:2715,05528,981,79313,248,00002,293,760
3Apr 8, 2026 04:2715,10028,267,92013,288,00002,265,088
4Apr 8, 2026 04:2715,12842,853,69913,313,00002,281,472
5Apr 8, 2026 04:2715,14433,649,96113,327,00002,347,008
6Apr 8, 2026 04:2715,19329,113,20013,370,00002,277,376
7Apr 8, 2026 04:2715,22226,831,26213,395,00002,351,104
8Apr 8, 2026 04:2715,25329,418,36713,423,00002,265,088
9Apr 8, 2026 04:2715,28334,322,64313,449,00002,527,232