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 listJul 7, 2026 20:43Victor MerckléVictor MerckléScore: 4,678Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 20:474,57014,407,2032,867,0001,155,0002,146,304stderr
2Jul 7, 2026 20:474,66014,050,7402,918,0001,183,0002,146,304stderr
3Jul 7, 2026 20:474,66312,832,2372,856,0001,248,0002,146,304stderr
4Jul 7, 2026 20:474,66914,229,7182,916,0001,193,0002,146,304stderr
5Jul 7, 2026 20:474,67813,132,2902,526,0001,591,0002,146,304stderr
6Jul 7, 2026 20:474,69814,225,6992,519,0001,616,0002,146,304stderr
7Jul 7, 2026 20:474,71114,035,3122,934,0001,212,0002,150,400stderr
8Jul 7, 2026 20:474,72312,021,5592,855,0001,302,0002,146,304stderr
9Jul 7, 2026 20:474,74714,564,7893,050,0001,128,0002,146,304stderr