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 7, 2026 01:09Victor MerckléVictor MerckléScore: 7,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:127,55014,027,8846,644,00002,113,536
2Jun 7, 2026 01:127,56914,123,6716,661,00002,113,536
3Jun 7, 2026 01:127,60613,997,4436,694,00002,113,536
4Jun 7, 2026 01:127,64314,041,5566,726,00002,113,536
5Jun 7, 2026 01:127,66113,970,5256,742,00002,113,536
6Jun 7, 2026 01:127,66114,010,6866,742,00002,113,536
7Jun 7, 2026 01:127,66414,264,4006,745,00002,113,536
8Jun 7, 2026 01:127,69814,022,4566,775,00002,113,536
9Jun 7, 2026 01:127,86814,313,3076,924,00002,113,536