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 26, 2026 04:18olliecrowolliecrowScore: 13,015Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:1912,93527,650,33210,349,0001,034,0002,547,712
2Apr 26, 2026 04:1912,93927,675,9219,317,0002,070,0002,539,520
3Apr 26, 2026 04:1912,95129,010,02710,361,0001,036,0002,433,024
4Apr 26, 2026 04:1912,98129,315,06910,386,0001,038,0002,367,488
5Apr 26, 2026 04:1913,01528,785,8859,372,0002,082,0002,547,712
6Apr 26, 2026 04:1913,03927,745,50610,432,0001,043,0002,543,616
7Apr 26, 2026 04:1913,52132,046,9179,916,0001,983,0002,568,192
8Apr 26, 2026 04:1913,86526,493,86211,186,0001,016,0002,543,616
9Apr 26, 2026 04:1915,83530,651,30911,945,0001,990,0002,531,328