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:39NoSIMD_C#NoSIMD_C#Score: 95,007Success
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:4194,624103,871,47883,269,00002,424,832
2Mar 3, 2026 12:3994,843106,550,58583,462,00002,433,024
3Mar 3, 2026 12:4194,851104,422,15782,464,0001,005,0002,428,928
4Mar 3, 2026 12:3995,007106,184,86983,606,00002,428,928
5Mar 3, 2026 12:3995,108107,813,20183,695,00002,428,928
6Mar 3, 2026 12:4195,113108,950,12383,699,00002,514,944