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 17:29Victor MerckléVictor MerckléScore: 2,781Success
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 17:312,74610,620,2022,417,000024,576stderr
2Sep 2, 2026 17:312,75110,553,6022,421,000024,576stderr
3Sep 2, 2026 17:312,75410,611,7682,424,000024,576stderr
4Sep 2, 2026 17:312,76810,557,9292,436,000024,576stderr
5Sep 2, 2026 17:312,78110,663,5642,448,000024,576stderr
6Sep 2, 2026 17:312,78610,501,3022,452,000024,576stderr
7Sep 2, 2026 17:312,78910,635,5042,455,000024,576stderr
8Sep 2, 2026 17:312,79810,646,4922,463,000024,576stderr
9Sep 2, 2026 17:312,80310,792,8962,467,000024,576stderr