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 17:49Victor MerckléVictor MerckléScore: 3,590Success
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 17:523,57611,032,7193,147,00002,117,632stderr
2Jul 8, 2026 17:523,58011,048,3633,151,00002,117,632stderr
3Jul 8, 2026 17:523,58511,130,4593,155,00002,117,632stderr
4Jul 8, 2026 17:523,58811,035,2023,158,00002,117,632stderr
5Jul 8, 2026 17:523,59011,055,6143,160,00002,117,632stderr
6Jul 8, 2026 17:523,59311,059,1183,162,00002,117,632stderr
7Jul 8, 2026 17:523,67811,085,4293,237,00002,117,632stderr
8Jul 8, 2026 17:523,68111,050,7153,240,00002,117,632stderr
9Jul 8, 2026 17:523,69011,092,6583,248,00002,117,632stderr