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 23, 2026 02:20Victor MerckléVictor MerckléScore: 6,481Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 02:236,39213,144,8195,625,00002,113,536
2Jun 23, 2026 02:236,39213,155,2025,625,00002,113,536
3Jun 23, 2026 02:236,41313,136,8895,644,00002,113,536
4Jun 23, 2026 02:236,44513,187,5135,672,00002,113,536
5Jun 23, 2026 02:236,48113,128,3605,704,00002,113,536
6Jun 23, 2026 02:236,49713,163,1125,718,00002,113,536
7Jun 23, 2026 02:236,50313,276,5335,723,00002,113,536
8Jun 23, 2026 02:236,53013,211,5465,747,00002,113,536
9Jun 23, 2026 02:236,61713,311,4215,823,00002,113,536