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 listJan 20, 2026 11:36Johan SannemoJohan SannemoScore: 15,428Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 11:3815,32541,608,53712,449,0001,037,0002,433,024
2Jan 20, 2026 11:3815,35839,877,54612,476,0001,039,0002,363,392
3Jan 20, 2026 11:3615,39030,625,48111,460,0002,083,0002,289,664
4Jan 20, 2026 11:3615,42837,527,73012,533,0001,044,0002,289,664
5Jan 20, 2026 11:3615,50934,311,43211,549,0002,099,0002,433,024
6Jan 20, 2026 11:3815,56636,561,30812,645,0001,053,0002,363,392