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 listSep 2, 2026 22:05Victor MerckléVictor MerckléScore: 29,923Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 22:0829,82234,447,76326,244,000024,576stderr
2Sep 2, 2026 22:0829,85734,420,12826,275,000024,576stderr
3Sep 2, 2026 22:0829,88435,455,79326,298,000024,576stderr
4Sep 2, 2026 22:0829,90235,129,04026,314,000024,576stderr
5Sep 2, 2026 22:0829,92334,521,39526,333,000024,576stderr
6Sep 2, 2026 22:0830,00035,188,28626,400,000024,576stderr
7Sep 2, 2026 22:0830,00135,203,42226,401,000024,576stderr
8Sep 2, 2026 22:0830,09434,643,67126,483,000024,576stderr
9Sep 2, 2026 22:0830,73636,472,66226,033,0001,015,00024,576stderr