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 15:49Johan SannemoJohan SannemoScore: 9,247Success
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 15:499,18328,598,1296,061,0002,020,0002,289,664
2Jan 20, 2026 15:499,19125,316,7786,066,0002,022,0002,502,656
3Jan 20, 2026 15:489,21427,017,7986,081,0002,027,0002,502,656
4Jan 20, 2026 15:499,24028,449,9057,115,0001,016,0002,285,568
5Jan 20, 2026 15:489,24724,326,1755,086,0003,051,0002,498,560
6Jan 20, 2026 15:489,24828,086,2187,121,0001,017,0002,502,656
7Jan 20, 2026 15:499,25729,010,6656,110,0002,036,0002,285,568
8Jan 20, 2026 15:499,26823,923,4575,098,0003,058,0002,285,568
9Jan 20, 2026 15:499,31930,471,0946,151,0002,050,0002,281,472