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:26NoSIMD_C#NoSIMD_C#Score: 17,549,114Success
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:2617,454,56715,391,664,20515,358,020,0001,999,0002,301,952
2Nov 15, 2024 11:2617,468,54515,404,473,16715,368,322,0003,998,0002,289,664
3Nov 15, 2024 11:2617,488,65115,422,972,57915,388,014,0001,999,0002,535,424
4Nov 15, 2024 11:2617,547,25815,480,683,29515,439,588,0001,999,0002,535,424
5Nov 15, 2024 11:2617,549,11415,477,395,42415,443,220,00002,314,240
6Nov 15, 2024 11:2617,564,52415,494,646,96615,455,782,000999,0002,289,664
7Nov 15, 2024 11:2617,595,26115,522,935,97015,480,832,0002,998,0002,392,064
8Nov 15, 2024 11:2617,635,81815,557,013,80215,516,522,0002,998,0002,535,424
9Nov 15, 2024 11:2617,658,82015,575,228,18415,536,764,0002,998,0002,535,424