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 listJun 19, 2026 20:37Victor MerckléVictor MerckléScore: 7,034Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 20:406,92713,630,7766,096,00002,113,536
2Jun 19, 2026 20:406,94313,591,7056,110,00002,113,536
3Jun 19, 2026 20:406,96813,627,1966,132,00002,113,536
4Jun 19, 2026 20:407,01413,640,8276,173,00002,113,536
5Jun 19, 2026 20:407,03413,615,1186,190,00002,113,536
6Jun 19, 2026 20:407,03913,609,5016,195,00002,113,536
7Jun 19, 2026 20:407,04613,636,7966,201,00002,113,536
8Jun 19, 2026 20:407,05113,698,1936,205,00002,113,536
9Jun 19, 2026 20:407,16313,624,4236,304,00002,113,536