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 1, 2025 13:41NoSIMD_C#NoSIMD_C#Score: 217,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 13:41217,248219,200,686190,178,0001,000,0002,301,952
2Mar 1, 2025 13:41217,641215,901,504189,519,0002,005,0002,326,528
3Mar 1, 2025 13:41218,377224,027,843188,169,0004,003,0002,535,424