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 29, 2026 22:30Victor MerckléVictor MerckléScore: 4,879Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 22:334,74811,876,9354,179,00002,117,632stderr
2Jun 29, 2026 22:334,77011,930,6864,198,00002,117,632stderr
3Jun 29, 2026 22:334,77611,981,3494,203,00002,117,632stderr
4Jun 29, 2026 22:334,81911,923,2874,241,00002,117,632stderr
5Jun 29, 2026 22:334,87912,065,5164,294,00002,117,632stderr
6Jun 29, 2026 22:334,88512,075,3124,299,00002,117,632stderr
7Jun 29, 2026 22:334,89211,936,0454,305,00002,117,632stderr
8Jun 29, 2026 22:334,90711,979,5464,319,00002,117,632stderr
9Jun 29, 2026 22:334,92315,010,9114,333,00002,117,632stderr