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 listFeb 3, 2025 05:30NoSIMD_C#NoSIMD_C#Score: 205,623Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 3, 2025 05:30205,159203,197,093179,537,0001,003,0002,269,184
2Feb 3, 2025 05:30205,623207,305,451177,949,0002,999,0002,535,424
3Feb 3, 2025 05:30206,601210,360,769180,811,000998,0002,424,832