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 3, 2026 12:47Victor MerckléVictor MerckléScore: 2,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2026 12:542,62610,551,4462,311,000024,576stderr
2Sep 3, 2026 12:542,62610,488,9052,311,000024,576stderr
3Sep 3, 2026 12:542,63210,578,4672,317,000024,576stderr
4Sep 3, 2026 12:542,64310,604,1742,326,000024,576stderr
5Sep 3, 2026 12:542,64411,054,8172,327,000024,576stderr
6Sep 3, 2026 12:542,64810,389,5832,331,000024,576stderr
7Sep 3, 2026 12:542,65010,469,4402,332,000024,576stderr
8Sep 3, 2026 12:542,66010,522,0092,341,000024,576stderr
9Sep 3, 2026 12:542,66010,571,1692,341,000024,576stderr