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:27NoSIMD_C#NoSIMD_C#Score: 95,043Success
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:2794,628103,098,59283,273,00002,428,928
2Mar 2, 2026 18:2794,835109,293,65683,455,00002,535,424
3Mar 2, 2026 18:2794,888104,044,68683,501,00002,535,424
4Mar 2, 2026 18:2794,945108,024,28182,546,0001,006,0002,273,280
5Mar 2, 2026 18:2795,043106,876,59283,638,00002,433,024
6Mar 2, 2026 18:2795,116109,478,93482,694,0001,008,0002,535,424
7Mar 2, 2026 18:2795,434111,542,31581,983,0001,999,0002,535,424
8Mar 2, 2026 18:2795,502111,494,70982,041,0002,001,0002,433,024
9Mar 2, 2026 18:2795,641106,983,44382,161,0002,003,0002,514,944