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 16, 2024 06:12NoSIMD_C#NoSIMD_C#Score: 11,177,944Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 06:1210,877,4029,612,445,5899,534,146,00037,968,0002,334,720
2Nov 16, 2024 06:1211,040,0929,749,316,9779,673,315,00041,966,0002,347,008
3Nov 16, 2024 06:1211,112,8029,820,643,0499,737,321,00041,945,0002,424,832
4Nov 16, 2024 06:1211,125,8729,825,863,4049,747,812,00042,955,0002,445,312
5Nov 16, 2024 06:1211,177,9449,871,274,9319,795,627,00040,964,0002,338,816
6Nov 16, 2024 06:1211,293,7889,984,240,9379,897,573,00040,960,0002,338,816
7Nov 16, 2024 06:1211,333,16610,011,733,6129,929,225,00043,961,0002,412,544
8Nov 16, 2024 06:1211,423,64010,092,935,54110,009,851,00042,952,0002,330,624
9Nov 16, 2024 06:1211,495,33110,161,466,27010,077,952,00037,939,0002,416,640