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:08NoSIMD_C#NoSIMD_C#Score: 130,015Success
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:08129,360139,634,361111,840,0001,997,0002,392,064
2Mar 2, 2026 17:08129,385139,536,001111,862,0001,997,0002,506,752
3Mar 2, 2026 17:08129,708144,182,243111,140,0003,003,0002,379,776
4Mar 2, 2026 17:08129,768140,344,186109,188,0005,008,0002,387,968
5Mar 2, 2026 17:08130,015139,693,769110,399,0004,014,0002,375,680
6Mar 2, 2026 17:08130,107143,559,172111,481,0003,013,0002,461,696
7Mar 2, 2026 17:08130,118137,961,815112,496,0002,008,0002,383,872
8Mar 2, 2026 17:08130,374141,998,123114,729,00002,387,968
9Mar 2, 2026 17:08130,643144,933,588108,968,0005,998,0002,306,048