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 listAug 3, 2022 14:37Robert BurkeRobert BurkeScore: 36,584Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 14:3735,44798,723,67731,193,23202,228,224
2Aug 3, 2022 14:3735,54887,353,29831,282,45702,236,416
3Aug 3, 2022 14:3735,596236,751,49031,324,16302,228,224
4Aug 3, 2022 14:3736,42855,517,75331,056,0001,001,0002,535,424
5Aug 3, 2022 14:3736,45357,679,68531,077,0001,002,0002,535,424
6Aug 3, 2022 14:3736,54955,167,43731,158,0001,005,0002,273,280
7Aug 3, 2022 14:3736,58459,350,19431,188,0001,006,0002,535,424
8Aug 3, 2022 14:3736,62759,156,65830,218,0002,014,0002,396,160
9Aug 3, 2022 14:3736,71557,009,11330,290,0002,019,0002,392,064
10Aug 3, 2022 14:3736,79953,182,05232,383,00002,273,280
11Aug 3, 2022 14:3736,86859,825,58332,444,00002,392,064
12Aug 3, 2022 14:3737,25560,514,93732,784,00002,273,280