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 15:05Victor MerckléVictor MerckléScore: 4,785Success
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 15:084,65211,826,7984,094,00002,113,536
2Jun 29, 2026 15:084,69611,914,2804,133,00002,113,536
3Jun 29, 2026 15:084,76111,810,2614,190,00002,113,536
4Jun 29, 2026 15:084,77011,831,9904,198,00002,113,536
5Jun 29, 2026 15:084,78512,219,0974,211,00002,113,536
6Jun 29, 2026 15:084,78811,846,8334,214,00002,113,536
7Jun 29, 2026 15:084,80311,888,8764,227,00002,113,536
8Jun 29, 2026 15:084,84811,912,9164,267,00002,113,536
9Jun 29, 2026 15:084,85212,215,4684,270,00002,113,536