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 12:50Victor MerckléVictor MerckléScore: 6,376Success
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 12:526,24513,298,2705,496,00002,113,536
2Jun 29, 2026 12:526,35313,270,6515,591,00002,113,536
3Jun 29, 2026 12:526,35613,523,9515,594,00002,113,536
4Jun 29, 2026 12:526,37213,606,0555,608,00002,113,536
5Jun 29, 2026 12:526,37613,622,9775,611,00002,113,536
6Jun 29, 2026 12:526,37813,265,7645,613,00002,113,536
7Jun 29, 2026 12:526,38813,337,2605,622,00002,113,536
8Jun 29, 2026 12:526,42913,352,7505,658,00002,113,536
9Jun 29, 2026 12:526,44013,365,5955,668,00002,113,536