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 23, 2023 06:54Kenneth MaplesKenneth MaplesScore: 56,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 06:5448,777116,199,81042,923,93702,248,704
2Dec 23, 2023 06:5448,799109,437,49642,943,35002,256,896
3Dec 23, 2023 06:5448,867111,239,35143,003,32102,248,704
4Dec 23, 2023 06:5456,48579,526,03749,707,00002,273,280
5Dec 23, 2023 06:5456,51182,123,54648,716,0001,014,0002,277,376
6Dec 23, 2023 06:5456,54276,381,40348,742,0001,015,0002,289,664
7Dec 23, 2023 06:5456,55176,639,12449,765,00002,289,664
8Dec 23, 2023 06:5456,67875,217,56647,882,0001,995,0002,265,088
9Dec 23, 2023 06:5456,73369,951,15547,928,0001,997,0002,281,472
10Dec 23, 2023 06:5456,77078,521,46147,960,0001,998,0002,289,664
11Dec 23, 2023 06:5456,79875,379,78847,983,0001,999,0002,289,664
12Dec 23, 2023 06:5456,81173,148,11948,995,000999,0002,289,664