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 16:27Victor MerckléVictor MerckléScore: 2,780Success
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 16:312,76510,621,1362,434,000024,576stderr
2Sep 2, 2026 16:312,76710,554,7732,435,000024,576stderr
3Sep 2, 2026 16:312,77710,554,3102,444,000024,576stderr
4Sep 2, 2026 16:312,77711,131,6152,444,000024,576stderr
5Sep 2, 2026 16:312,78011,178,9862,447,000024,576stderr
6Sep 2, 2026 16:312,78911,212,9002,455,000024,576stderr
7Sep 2, 2026 16:312,79710,553,4562,462,000024,576stderr
8Sep 2, 2026 16:312,80210,725,0582,466,000024,576stderr
9Sep 2, 2026 16:312,80310,634,7152,467,000024,576stderr