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 6, 2026 09:28Victor MerckléVictor MerckléScore: 4,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 09:333,88411,290,7173,418,00002,117,632stderr
2Jul 6, 2026 09:333,90111,267,0783,433,00002,117,632stderr
3Jul 6, 2026 09:333,90611,314,4923,438,00002,117,632stderr
4Jul 6, 2026 09:334,01111,466,2513,530,00002,117,632stderr
5Jul 6, 2026 09:334,01411,329,1293,533,00002,117,632stderr
6Jul 6, 2026 09:334,02711,303,6763,544,00002,117,632stderr
7Jul 6, 2026 09:334,03011,390,3833,547,00002,117,632stderr
8Jul 6, 2026 09:334,04011,351,2563,556,00002,117,632stderr
9Jul 6, 2026 09:334,14411,415,6833,647,00002,117,632stderr