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 20:27Victor MerckléVictor MerckléScore: 2,761Success
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 20:302,74210,498,8322,413,000024,576stderr
2Sep 2, 2026 20:302,74712,503,8542,418,000024,576stderr
3Sep 2, 2026 20:302,75211,167,4142,422,000024,576stderr
4Sep 2, 2026 20:302,75511,126,0032,425,000024,576stderr
5Sep 2, 2026 20:302,76110,515,3122,430,000024,576stderr
6Sep 2, 2026 20:302,76711,146,6672,435,000024,576stderr
7Sep 2, 2026 20:302,77310,624,4332,441,000024,576stderr
8Sep 2, 2026 20:302,77610,583,4302,443,000024,576stderr
9Sep 2, 2026 20:302,77710,555,8572,444,000024,576stderr