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 16:41Victor MerckléVictor MerckléScore: 4,736Success
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 16:444,63211,806,7164,077,00002,113,536
2Jun 29, 2026 16:444,64811,818,7924,091,00002,113,536
3Jun 29, 2026 16:444,65311,855,0644,095,00002,113,536
4Jun 29, 2026 16:444,72312,076,1604,157,00002,113,536
5Jun 29, 2026 16:444,73612,126,9004,168,00002,113,536
6Jun 29, 2026 16:444,75511,885,5834,185,00002,113,536
7Jun 29, 2026 16:444,80312,199,3914,227,00002,113,536
8Jun 29, 2026 16:444,87812,245,8454,293,00002,113,536
9Jun 29, 2026 16:444,91412,028,5134,325,00002,113,536