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 8, 2026 00:11Victor MerckléVictor MerckléScore: 3,709Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 00:143,69611,145,6363,253,00002,117,632stderr
2Jul 8, 2026 00:143,70011,157,3683,256,00002,117,632stderr
3Jul 8, 2026 00:143,70111,136,0913,257,00002,117,632stderr
4Jul 8, 2026 00:143,70911,184,1083,264,00002,117,632stderr
5Jul 8, 2026 00:143,70911,206,4963,264,00002,117,632stderr
6Jul 8, 2026 00:143,80111,135,3993,345,00002,117,632stderr
7Jul 8, 2026 00:143,80211,107,7243,346,00002,117,632stderr
8Jul 8, 2026 00:143,80911,189,5543,352,00002,117,632stderr
9Jul 8, 2026 00:143,81911,497,2403,361,00002,117,632stderr