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 listJun 19, 2026 17:50Victor MerckléVictor MerckléScore: 7,080Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 17:526,96313,365,6696,128,00002,113,536
2Jun 19, 2026 17:526,97513,631,6096,138,00002,113,536
3Jun 19, 2026 17:526,97813,633,5986,141,00002,113,536
4Jun 19, 2026 17:527,05913,942,5416,212,00002,113,536
5Jun 19, 2026 17:527,08013,872,8006,231,00002,113,536
6Jun 19, 2026 17:527,11313,979,2716,260,00002,113,536
7Jun 19, 2026 17:527,19214,082,8456,329,00002,113,536
8Jun 19, 2026 17:527,32913,870,7656,450,00002,113,536
9Jun 19, 2026 17:527,38413,978,3716,498,00002,113,536