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 18, 2026 05:54mgildermgilderScore: 105,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 05:54104,531122,404,18189,988,0001,999,0002,465,792
2Jan 18, 2026 05:54104,722116,475,21491,154,0001,001,0002,289,664
3Jan 18, 2026 05:54104,799113,698,93391,221,0001,002,0002,363,392
4Jan 18, 2026 05:54104,966117,071,79792,370,00002,285,568
5Jan 18, 2026 05:54105,005114,198,86091,400,0001,004,0002,379,776
6Jan 18, 2026 05:54105,109120,470,17092,496,00002,363,392
7Jan 18, 2026 05:54105,213118,550,71192,587,00002,289,664
8Jan 18, 2026 05:54105,252119,488,69091,616,0001,006,0002,363,392
9Jan 18, 2026 05:54105,292117,822,82791,650,0001,007,0002,289,664