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 10, 2024 06:39NoSIMD_C#NoSIMD_C#Score: 17,539,043Success
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 05:3917,357,21615,307,160,16915,272,351,0001,999,0002,289,664
2Nov 15, 2024 05:3917,506,44215,441,697,71915,403,670,0001,999,0002,535,424
3Nov 10, 2024 06:3917,510,96515,437,388,02315,407,650,0001,999,0002,297,856
4Nov 10, 2024 06:3917,516,51515,446,964,93215,412,534,0001,999,0002,289,664
5Nov 10, 2024 06:3917,526,68815,454,229,36815,422,486,000999,0002,289,664
6Nov 10, 2024 06:3917,529,90515,464,142,98415,423,318,0002,998,0002,289,664
7Nov 10, 2024 06:3917,539,04315,473,330,06215,432,359,0001,999,0002,293,760
8Nov 10, 2024 06:3917,563,30515,491,266,74215,453,709,0001,999,0002,297,856
9Nov 10, 2024 06:3917,564,90115,495,330,45015,453,115,0003,998,0002,539,520
10Nov 10, 2024 06:3917,582,65615,504,612,93915,469,739,0002,998,0002,289,664
11Nov 15, 2024 05:3917,591,99215,616,019,85915,478,956,0001,997,0002,289,664
12Nov 10, 2024 06:3917,623,93915,538,461,78115,506,068,0002,998,0002,535,424