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 3, 2026 12:37NoSIMD_C#NoSIMD_C#Score: 94,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2026 12:3794,186107,296,96581,886,000998,0002,416,640
2Mar 3, 2026 12:3794,285109,648,77980,972,0001,999,0002,428,928
3Mar 3, 2026 12:3794,388104,482,28682,061,0001,000,0002,535,424
4Mar 3, 2026 12:3794,395105,271,68281,067,0002,001,0002,433,024
5Mar 3, 2026 12:3794,480104,795,08482,141,0001,001,0002,420,736
6Mar 3, 2026 12:3794,753103,964,68683,383,00002,535,424
7Mar 3, 2026 12:3794,820109,532,58983,442,00002,428,928
8Mar 3, 2026 12:3794,835112,967,08583,455,00002,433,024
9Mar 3, 2026 12:3794,892103,150,80683,505,00002,428,928