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 17:00apuxbtapuxbtScore: 31,052Success
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 17:0030,80053,475,03626,101,0001,003,0002,383,872
2Dec 1, 2022 17:0030,87353,451,91126,162,0001,006,0002,265,088
3Dec 1, 2022 17:0030,90553,414,32626,189,0001,007,0002,265,088
4Dec 1, 2022 17:0030,93851,268,80625,209,0002,016,0002,256,896
5Dec 1, 2022 17:0030,99956,436,18925,259,0002,020,0002,269,184
6Dec 1, 2022 17:0031,03650,108,49725,289,0002,023,0002,265,088
7Dec 1, 2022 17:0031,05255,620,50725,302,0002,024,0002,387,968
8Dec 1, 2022 17:0031,10653,398,16325,346,0002,027,0002,383,872
9Dec 1, 2022 17:0031,11948,649,98327,385,00002,392,064
10Dec 1, 2022 17:0031,239109,963,36327,490,63702,228,224
11Dec 1, 2022 17:0031,31896,176,92727,559,93902,236,416
12Dec 1, 2022 17:0031,34593,026,57627,583,60902,236,416