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 19, 2026 16:57Johan SannemoJohan SannemoScore: 12,535,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 16:5712,509,60811,040,945,47911,006,456,0001,999,0002,281,472
2Jan 19, 2026 16:5712,517,56511,045,888,31711,011,459,0003,998,0002,281,472
3Jan 19, 2026 16:5712,520,05311,054,001,60411,014,649,0002,998,0002,289,664
4Jan 19, 2026 16:5712,534,49511,063,434,82511,028,357,0001,999,0002,281,472
5Jan 19, 2026 16:5712,535,66911,059,799,71011,029,390,0001,999,0002,269,184
6Jan 19, 2026 16:5712,538,23311,065,214,08711,032,646,000999,0002,265,088
7Jan 19, 2026 16:5712,545,44211,072,599,23611,038,990,000999,0002,281,472
8Jan 19, 2026 16:5712,553,89911,085,669,94411,046,432,000999,0002,281,472
9Jan 19, 2026 16:5712,614,08811,132,317,96511,099,398,000999,0002,281,472