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 17, 2026 05:42Josu San MartinJosu San MartinScore: 39,835Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:4239,81960,430,99833,039,0002,002,0002,527,232
2Jan 17, 2026 05:4239,82661,253,67131,042,0004,005,0002,523,136
3Jan 17, 2026 05:4239,82659,800,23432,043,0003,004,0002,514,944
4Jan 17, 2026 05:4239,82756,313,21434,047,0001,001,0002,453,504
5Jan 17, 2026 05:4239,83556,522,03233,052,0002,003,0002,461,696
6Jan 17, 2026 05:4239,83659,509,01533,053,0002,003,0002,453,504
7Jan 17, 2026 05:4239,95957,635,48634,160,0001,004,0002,453,504
8Jan 17, 2026 05:4240,03461,267,40433,217,0002,013,0002,277,376
9Jan 17, 2026 05:4240,16756,748,48535,347,00002,437,120