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 17:14NoSIMD_C#NoSIMD_C#Score: 107,772Success
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 17:14107,306125,554,63591,416,0003,013,0002,363,392
2Mar 2, 2026 17:14107,427123,197,37294,536,00002,527,232
3Mar 2, 2026 17:14107,516119,798,85292,601,0002,013,0002,494,464
4Mar 2, 2026 17:14107,536123,392,94693,626,0001,006,0002,539,520
5Mar 2, 2026 17:14107,772123,628,99193,841,000998,0002,506,752
6Mar 2, 2026 17:14107,874121,067,21193,930,000999,0002,510,848
7Mar 2, 2026 17:14108,014123,553,18392,051,0003,001,0002,293,760
8Mar 2, 2026 17:14108,197122,973,91492,207,0003,006,0002,338,816
9Mar 2, 2026 17:14108,249119,609,66993,254,0002,005,0002,502,656