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:15NoSIMD_C#NoSIMD_C#Score: 17,493,408Success
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:1517,478,23815,414,776,90515,380,849,00002,297,856
2Nov 15, 2024 11:1517,485,86915,421,984,79115,384,567,0002,998,0002,539,520
3Nov 15, 2024 11:1517,486,03515,421,232,52315,384,713,0002,998,0002,433,024
4Nov 15, 2024 11:1517,489,65615,419,391,28315,389,898,000999,0002,289,664
5Nov 15, 2024 11:1517,493,40815,426,179,72015,393,200,000999,0002,289,664
6Nov 15, 2024 11:1517,501,90615,435,351,96515,397,679,0003,998,0002,297,856
7Nov 15, 2024 11:1517,547,09415,479,410,22715,438,445,0002,998,0002,289,664
8Nov 15, 2024 11:1517,586,16915,511,481,66515,474,830,000999,0002,293,760
9Nov 15, 2024 11:1517,628,00515,545,839,28415,510,645,0001,999,0002,535,424