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 listAug 1, 2026 03:18Warren FuWarren FuScore: 109,015Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2026 03:20108,260105,250,78994,261,0001,008,0002,113,536
2Aug 1, 2026 03:20108,709105,667,56994,659,0001,005,0002,113,536
3Aug 1, 2026 03:20108,813105,668,46394,746,0001,010,0002,113,536
4Aug 1, 2026 03:20108,878105,686,02894,800,0001,013,0002,113,536
5Aug 1, 2026 03:20109,015105,921,23894,925,0001,009,0002,113,536
6Aug 1, 2026 03:20109,129106,537,23495,027,0001,007,0002,113,536
7Aug 1, 2026 03:20109,278106,043,66995,154,0001,011,0002,113,536
8Aug 1, 2026 03:20109,377106,213,61195,241,0001,011,0002,113,536
9Aug 1, 2026 03:20109,614106,332,87395,451,0001,010,0002,113,536