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 8, 2024 03:29NoSIMD_C#NoSIMD_C#Score: 17,536,698Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2024 03:2917,461,17015,393,493,31715,362,832,0002,998,0002,306,048
2Nov 8, 2024 03:2917,480,45015,413,272,10915,381,797,000999,0002,289,664
3Nov 8, 2024 03:2917,480,87315,414,830,89215,379,170,0003,998,0002,306,048
4Nov 8, 2024 03:2917,508,90315,436,417,94615,405,836,0001,999,0002,297,856
5Nov 8, 2024 03:2917,536,69815,471,187,50815,429,296,0002,998,0002,289,664
6Nov 8, 2024 03:2917,549,35115,568,000,36915,440,433,0002,996,0002,539,520
7Nov 8, 2024 03:2917,549,71915,478,634,08615,439,755,0003,998,0002,535,424
8Nov 8, 2024 03:2917,603,67315,520,362,21415,488,234,0002,998,0002,293,760
9Nov 8, 2024 03:2917,616,58115,534,932,09715,500,592,0001,999,0002,289,664