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 listMar 23, 2026 18:47Dominique GarmierDominique GarmierScore: 34,835Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 18:4734,55755,009,55830,410,00002,494,464
2Mar 24, 2026 17:1034,69357,850,40529,513,0001,017,0002,478,080
3Mar 24, 2026 20:0934,74460,271,68629,556,0001,019,0002,383,872
4Mar 24, 2026 17:1034,79951,668,46829,603,0001,020,0002,486,272
5Mar 24, 2026 20:0934,83560,846,26229,634,0001,021,0002,383,872
6Mar 24, 2026 17:1034,95361,120,68630,759,00002,277,376
7Mar 23, 2026 18:4735,10152,271,26929,893,000996,0002,387,968
8Mar 23, 2026 18:4735,10957,768,71128,903,0001,993,0002,383,872
9Mar 24, 2026 20:0935,13970,811,20929,925,000997,0002,277,376