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 24, 2023 01:30Kenneth MaplesKenneth MaplesScore: 22,261Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:3022,12644,689,12119,471,00002,383,872
2Dec 24, 2023 01:3022,17236,225,99718,485,0001,026,0002,265,088
3Dec 24, 2023 01:3022,19743,610,41518,505,0001,028,0002,265,088
4Dec 24, 2023 01:3022,21540,954,24618,521,0001,028,0002,379,776
5Dec 24, 2023 01:3022,21842,093,40519,552,00002,387,968
6Dec 24, 2023 01:3022,22441,934,52319,557,00002,265,088
7Dec 24, 2023 01:3022,26137,140,44418,559,0001,031,0002,265,088
8Dec 24, 2023 01:3022,29740,903,24118,589,0001,032,0002,392,064
9Dec 24, 2023 01:3022,37844,793,44118,657,0001,036,0002,265,088
10Dec 24, 2023 01:3022,51983,731,07619,816,38102,240,512
11Dec 24, 2023 01:3022,55793,993,27119,850,33802,228,224
12Dec 24, 2023 01:3022,584113,801,22519,873,72102,232,320