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 listMar 2, 2026 18:26NoSIMD_C#NoSIMD_C#Score: 95,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 2, 2026 18:2695,036112,581,28382,625,0001,007,0002,285,568
2Mar 2, 2026 18:2695,149112,923,42483,731,00002,285,568
3Mar 2, 2026 18:2695,274112,507,55181,845,0001,996,0002,265,088
4Mar 2, 2026 18:2695,295111,250,24881,864,0001,996,0002,285,568
5Mar 2, 2026 18:2695,465110,547,69983,009,0001,000,0002,285,568
6Mar 2, 2026 18:2695,517110,416,97583,055,0001,000,0002,375,680
7Mar 2, 2026 18:2695,625112,171,28283,149,0001,001,0002,531,328
8Mar 2, 2026 18:2695,630109,179,62583,153,0001,001,0002,281,472
9Mar 2, 2026 18:2695,795116,435,40482,293,0002,007,0002,281,472