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 15, 2024 11:49NoSIMD_C#NoSIMD_C#Score: 17,521,036Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2024 11:4917,506,31115,436,994,26315,402,556,0002,998,0002,519,040
2Nov 15, 2024 11:4917,521,03615,451,757,30515,414,514,0003,998,0002,392,064
3Nov 15, 2024 11:4917,535,02615,467,711,95115,430,823,00002,461,696