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 17:47NoSIMD_C#NoSIMD_C#Score: 17,105,981Success
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 17:4717,058,77615,050,095,55215,010,724,000999,0002,535,424
2Nov 15, 2024 17:4717,059,42615,044,461,28815,010,296,0001,999,0002,539,520
3Nov 15, 2024 17:4717,095,36615,077,608,84315,040,924,0002,998,0002,535,424
4Nov 15, 2024 17:4717,102,07615,076,251,80015,047,828,0001,999,0002,293,760
5Nov 15, 2024 17:4717,105,98115,084,151,70315,052,264,000999,0002,289,664
6Nov 15, 2024 17:4717,177,21415,148,556,03615,113,949,0001,999,0002,289,664
7Nov 15, 2024 17:4717,187,58015,151,422,94115,123,071,0001,999,0002,539,520
8Nov 15, 2024 17:4717,203,29715,174,445,82615,136,902,0001,999,0002,539,520
9Nov 15, 2024 17:4717,250,85515,217,390,51015,177,754,0002,998,0002,289,664