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 18, 2026 18:27Victor MerckléVictor MerckléScore: 18,225,586Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 18:2718,148,61316,002,996,76215,969,780,000999,0002,514,944
2Apr 18, 2026 18:2718,188,96616,033,104,39116,006,290,00002,322,432
3Apr 18, 2026 18:2718,192,36116,041,290,40316,007,279,0001,999,0002,334,720
4Apr 18, 2026 18:2718,211,36016,051,911,79916,023,998,0001,999,0002,334,720
5Apr 18, 2026 18:2718,225,58616,072,565,01516,034,518,0003,998,0002,334,720
6Apr 18, 2026 18:2718,233,01316,081,111,93416,044,052,000999,0002,330,624
7Apr 18, 2026 18:2718,240,01816,081,864,92916,049,217,0001,999,0002,330,624
8Apr 18, 2026 18:2718,248,53416,088,625,27316,058,710,00002,330,624
9Apr 18, 2026 18:2718,362,05516,192,977,07716,157,609,000999,0002,334,720