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 1, 2022 07:26apuxbtapuxbtScore: 30,610Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 07:2630,56960,623,42325,905,000996,0002,265,088
2Dec 1, 2022 07:2630,57057,422,81524,910,0001,992,0002,383,872
3Dec 1, 2022 07:2630,57252,861,07925,907,000996,0002,506,752
4Dec 1, 2022 07:2630,57554,574,73626,906,00002,265,088
5Dec 1, 2022 07:2630,57656,409,20324,914,0001,993,0002,265,088
6Dec 1, 2022 07:2630,57855,867,99724,916,0001,993,0002,379,776
7Dec 1, 2022 07:2630,58852,634,11024,924,0001,993,0002,392,064
8Dec 1, 2022 07:2630,61054,209,84224,942,0001,995,0002,265,088
9Dec 1, 2022 07:2530,65688,693,04126,976,96902,240,512
10Dec 1, 2022 07:2630,70687,934,34127,020,89402,228,224
11Dec 1, 2022 07:2630,70694,357,54727,021,46702,236,416
12Dec 1, 2022 07:2530,72098,096,75227,033,77302,232,320
13Dec 1, 2022 07:2630,75184,977,85527,061,08302,240,512
14Dec 1, 2022 07:2630,78252,866,23625,082,0002,006,0002,265,088
15Dec 1, 2022 07:2530,80990,127,70627,111,51502,228,224