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:32Johan SannemoJohan SannemoScore: 10,198Success
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:3210,09926,042,7545,925,0002,962,0002,285,568
2Jan 20, 2026 15:3110,13126,148,5766,934,0001,981,0002,342,912
3Jan 20, 2026 15:3110,15226,431,6495,956,0002,978,0002,506,752
4Jan 20, 2026 15:3210,19824,902,0456,980,0001,994,0002,490,368
5Jan 20, 2026 15:3210,33829,774,9567,076,0002,021,0002,285,568
6Jan 20, 2026 15:3110,37628,952,2938,117,0001,014,0002,506,752