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 05:54NoSIMD_C#NoSIMD_C#Score: 14,006,615Success
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 05:5413,715,14112,100,960,28512,043,343,00025,981,0002,461,696
2Nov 16, 2024 05:5413,814,66412,194,441,07412,124,931,00031,973,0002,482,176
3Nov 16, 2024 05:5413,827,65012,213,905,75512,139,356,00028,976,0002,306,048
4Nov 16, 2024 05:5414,003,88112,361,612,80312,287,441,00035,974,0002,322,432
5Nov 16, 2024 05:5414,006,61512,361,259,59712,296,841,00028,980,0002,330,624
6Nov 16, 2024 05:5414,086,95512,438,009,39912,365,547,00030,973,0002,461,696
7Nov 16, 2024 05:5414,138,83812,479,056,21112,411,204,00030,973,0002,473,984
8Nov 16, 2024 05:5414,148,78412,486,845,21712,421,952,00028,978,0002,461,696
9Nov 16, 2024 05:5414,328,02512,642,545,55912,575,692,00032,970,0002,465,792