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 listDec 4, 2024 12:34NoSIMD_C#NoSIMD_C#Score: 201,208Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 4, 2024 12:34200,624197,267,648174,543,0002,006,0002,547,712
2Dec 4, 2024 12:34200,752203,906,219173,651,0003,011,0002,535,424
3Dec 4, 2024 12:34200,958201,541,664175,844,000999,0002,306,048
4Dec 4, 2024 12:34201,022208,649,801173,901,0002,998,0002,535,424
5Dec 4, 2024 12:34201,208200,299,232176,063,0001,000,0002,289,664
6Dec 4, 2024 12:34201,381200,127,519176,214,0001,001,0002,289,664
7Dec 4, 2024 12:34201,433201,837,183173,256,0004,005,0002,293,760
8Dec 4, 2024 12:34201,652200,261,737174,447,0003,007,0002,289,664
9Dec 4, 2024 12:34203,078209,038,663175,714,0002,995,0002,285,568