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 4, 2026 16:31Victor MerckléVictor MerckléScore: 4,609Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 16:334,46811,708,7543,932,00002,117,632stderr
2Jul 4, 2026 16:334,47311,715,3543,937,00002,117,632stderr
3Jul 4, 2026 16:334,50511,777,8033,965,00002,117,632stderr
4Jul 4, 2026 16:334,60011,759,8284,048,00002,117,632stderr
5Jul 4, 2026 16:334,60911,790,2464,056,00002,117,632stderr
6Jul 4, 2026 16:334,61111,837,4644,058,00002,117,632stderr
7Jul 4, 2026 16:334,71411,916,6994,149,00002,117,632stderr
8Jul 4, 2026 16:334,76012,031,1114,189,00002,117,632stderr
9Jul 4, 2026 16:335,05212,201,6494,446,00002,117,632stderr