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:25NoSIMD_C#NoSIMD_C#Score: 128,243Success
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:25127,910134,487,617111,556,0001,005,0002,285,568
2Mar 2, 2026 18:25128,243144,013,904111,856,000998,0002,531,328
3Mar 2, 2026 18:25128,509141,150,135111,087,0002,001,0002,285,568