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 listApr 20, 2026 22:19Charles CabergsCharles CabergsScore: 25,739Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 22:2025,65247,254,14221,548,0001,026,0002,281,472stderr
2Apr 20, 2026 22:2025,68145,672,21919,519,0003,081,0002,420,736stderr
3Apr 20, 2026 22:2025,70944,581,53218,511,0004,113,0002,424,832stderr
4Apr 20, 2026 22:2025,71344,516,91119,543,0003,085,0002,424,832stderr
5Apr 20, 2026 22:2025,73944,491,57621,622,0001,029,0002,408,448stderr
6Apr 20, 2026 22:2025,75641,489,14921,636,0001,030,0002,281,472stderr
7Apr 20, 2026 22:2025,76443,584,75221,643,0001,030,0002,412,544stderr
8Apr 20, 2026 22:2025,82946,586,89120,664,0002,066,0002,433,024stderr
9Apr 20, 2026 22:2025,83851,493,79721,705,0001,033,0002,420,736stderr