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 listNov 16, 2024 05:25NoSIMD_C#NoSIMD_C#Score: 17,530,053Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 05:2517,515,03515,449,380,18515,410,233,0002,998,0002,347,008
2Nov 16, 2024 05:2517,530,05315,452,945,33115,424,448,0001,999,0002,347,008
3Nov 16, 2024 05:2517,552,34415,481,518,77815,443,065,0002,998,0002,535,424