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:58NoSIMD_C#NoSIMD_C#Score: 17,556,057Success
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:5817,383,01115,331,552,07315,294,052,0002,998,0002,465,792
2Nov 15, 2024 11:5817,471,01615,409,913,10215,371,496,0002,998,0002,539,520
3Nov 15, 2024 11:5817,521,03415,449,320,34515,414,512,0003,998,0002,469,888
4Nov 15, 2024 11:5817,538,76915,469,333,86315,428,120,0005,997,0002,404,352
5Nov 15, 2024 11:5817,556,05715,483,727,76915,446,332,0002,998,0002,387,968
6Nov 15, 2024 11:5817,567,35315,495,561,04415,456,273,0002,998,0002,367,488
7Nov 15, 2024 11:5817,573,99315,498,720,51215,457,118,0007,996,0002,543,616
8Nov 15, 2024 11:5817,612,28915,536,756,69715,497,815,000999,0002,539,520
9Nov 15, 2024 11:5817,629,27515,556,351,32715,509,765,0003,997,0002,428,928