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:19Victor MerckléVictor MerckléScore: 3,623Success
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:223,61311,134,0933,180,00002,117,632stderr
2Jul 8, 2026 17:223,61811,087,2533,184,00002,117,632stderr
3Jul 8, 2026 17:223,62211,200,9973,188,00002,117,632stderr
4Jul 8, 2026 17:223,62311,072,0763,189,00002,117,632stderr
5Jul 8, 2026 17:223,62311,070,2923,189,00002,117,632stderr
6Jul 8, 2026 17:223,62711,083,5213,192,00002,117,632stderr
7Jul 8, 2026 17:223,63011,086,3943,195,00002,117,632stderr
8Jul 8, 2026 17:223,65111,132,0533,213,00002,117,632stderr
9Jul 8, 2026 17:223,73711,083,0043,289,00002,117,632stderr