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 29, 2026 14:06Victor MerckléVictor MerckléScore: 4,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 14:094,82811,937,7774,249,00002,113,536
2Jun 29, 2026 14:094,83012,221,8184,251,00002,113,536
3Jun 29, 2026 14:094,83512,196,2314,255,00002,113,536
4Jun 29, 2026 14:094,83611,984,6104,256,00002,113,536
5Jun 29, 2026 14:094,84411,939,6074,263,00002,113,536
6Jun 29, 2026 14:094,85212,235,5574,270,00002,113,536
7Jun 29, 2026 14:094,88513,531,0484,299,00002,113,536
8Jun 29, 2026 14:094,91919,655,8254,329,00002,113,536
9Jun 29, 2026 14:095,05212,233,5694,446,00002,113,536