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 19, 2026 15:51Andrew TsibinAndrew TsibinScore: 11,059Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2026 15:5411,00719,244,5199,687,00002,117,632
2Jul 19, 2026 15:5411,02019,469,4778,693,0001,005,0002,117,632
3Jul 19, 2026 15:5411,03719,725,6688,703,0001,010,0002,117,632
4Jul 19, 2026 15:5411,03919,202,8068,714,0001,001,0002,117,632
5Jul 19, 2026 15:5411,05919,200,0688,714,0001,018,0002,117,632
6Jul 19, 2026 15:5411,10120,741,9378,766,0001,003,0002,117,632
7Jul 19, 2026 15:5411,25019,415,5199,900,00002,117,632
8Jul 19, 2026 15:5412,22220,369,8529,750,0001,006,0002,117,632
9Jul 19, 2026 15:5412,77120,720,54710,237,0001,002,0002,117,632