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 listApr 24, 2026 15:38Victor MerckléVictor MerckléScore: 11,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 15:3811,21529,128,5527,896,0001,974,0002,490,368
2Apr 24, 2026 15:3811,21727,931,4287,897,0001,974,0002,473,984
3Apr 24, 2026 15:3811,22126,269,6177,900,0001,975,0002,490,368
4Apr 24, 2026 15:3811,24426,400,3617,916,0001,979,0002,478,080
5Apr 24, 2026 15:3811,25622,871,3397,925,0001,981,0002,326,528
6Apr 24, 2026 15:3811,26426,843,1027,931,0001,982,0002,486,272
7Apr 24, 2026 15:3811,30126,793,9657,956,0001,989,0002,322,432
8Apr 24, 2026 15:3811,38726,951,2898,017,0002,004,0002,322,432
9Apr 24, 2026 15:3811,42127,533,6438,041,0002,010,0002,330,624