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 10:30Johan SannemoJohan SannemoScore: 16,176Success
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 10:3016,11033,827,54812,152,0002,025,0002,351,104
2Jan 20, 2026 10:3016,11629,339,19512,156,0002,026,0002,281,472
3Jan 20, 2026 10:3016,12538,118,59512,163,0002,027,0002,289,664
4Jan 20, 2026 10:3016,12536,821,82013,177,0001,013,0002,293,760
5Jan 20, 2026 10:3016,17632,894,56211,185,0003,050,0002,351,104
6Jan 20, 2026 10:3016,18438,024,47812,208,0002,034,0002,355,200
7Jan 20, 2026 10:3016,24431,734,75212,253,0002,042,0002,527,232
8Jan 20, 2026 10:3016,29530,690,49712,292,0002,048,0002,351,104
9Jan 20, 2026 10:3016,54531,149,00713,520,0001,040,0002,326,528