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 17, 2026 06:58Josu San MartinJosu San MartinScore: 35,135Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:5934,94557,078,44330,752,00002,449,408
2Jan 17, 2026 06:5934,96061,643,99229,740,0001,025,0002,465,792
3Jan 17, 2026 06:5934,98865,001,18830,789,00002,281,472
4Jan 17, 2026 06:5835,12258,640,51529,910,000997,0002,293,760
5Jan 17, 2026 06:5935,12757,772,67929,882,0001,030,0002,453,504
6Jan 17, 2026 06:5935,12856,254,04128,919,0001,994,0002,453,504
7Jan 17, 2026 06:5935,13561,767,40427,927,0002,992,0002,285,568
8Jan 17, 2026 06:5835,20753,866,29029,983,000999,0002,453,504
9Jan 17, 2026 06:5935,30552,746,09429,064,0002,004,0002,445,312
10Jan 17, 2026 06:5835,31158,755,45229,070,0002,004,0002,453,504
11Jan 17, 2026 06:5935,31757,152,57629,074,0002,005,0002,453,504
12Jan 17, 2026 06:5935,35160,912,05229,102,0002,007,0002,445,312