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 listJul 31, 2026 22:36Warren FuWarren FuScore: 112,407Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 22:39112,054108,681,53495,615,0002,993,0002,125,824
2Jul 31, 2026 22:39112,250108,847,96695,786,0002,994,0002,125,824
3Jul 31, 2026 22:39112,257108,872,44695,783,0003,004,0002,125,824
4Jul 31, 2026 22:39112,269109,552,45896,753,0002,044,0002,125,824
5Jul 31, 2026 22:39112,407109,653,15496,896,0002,023,0002,125,824
6Jul 31, 2026 22:39112,434108,986,40896,925,0002,017,0002,125,824
7Jul 31, 2026 22:39112,448108,981,61595,932,0003,023,0002,125,824
8Jul 31, 2026 22:39112,682109,174,70397,138,0002,023,0002,125,824
9Jul 31, 2026 22:39112,835109,335,13897,259,0002,036,0002,125,824