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 listOct 6, 2023 08:42Robert BurkeRobert BurkeScore: 22,131Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:4317,95575,991,92315,800,75202,232,320
2Oct 6, 2023 08:4218,01774,896,25715,854,61702,260,992
3Oct 6, 2023 08:4218,03288,596,83215,868,52702,240,512
4Oct 6, 2023 08:4318,04790,199,97215,881,00802,232,320
5Oct 6, 2023 08:4218,12470,197,87415,949,13302,228,224
6Oct 6, 2023 08:4318,18080,402,06915,998,51902,228,224
7Oct 6, 2023 08:4222,06646,232,85618,396,0001,022,0002,396,160
8Oct 6, 2023 08:4322,09744,522,77117,399,0002,046,0002,281,472
9Oct 6, 2023 08:4322,09841,446,05218,423,0001,023,0002,281,472
10Oct 6, 2023 08:4322,10137,142,41718,426,0001,023,0002,281,472
11Oct 6, 2023 08:4222,10142,791,74518,426,0001,023,0002,510,848
12Oct 6, 2023 08:4322,12542,803,44418,446,0001,024,0002,383,872
13Oct 6, 2023 08:4322,13145,313,05618,450,0001,025,0002,281,472
14Oct 6, 2023 08:4222,13239,043,54118,451,0001,025,0002,281,472
15Oct 6, 2023 08:4322,13840,336,98619,481,00002,396,160
16Oct 6, 2023 08:4322,14341,440,28218,461,0001,025,0002,490,368
17Oct 6, 2023 08:4322,18433,136,19018,495,0001,027,0002,514,944
18Oct 6, 2023 08:4222,18642,016,77218,497,0001,027,0002,441,216
19Oct 6, 2023 08:4222,20141,340,81517,481,0002,056,0002,281,472
20Oct 6, 2023 08:4222,21537,650,35818,521,0001,028,0002,281,472
21Oct 6, 2023 08:4322,21842,269,81918,523,0001,029,0002,281,472
22Oct 6, 2023 08:4222,22249,970,18718,526,0001,029,0002,404,352
23Oct 6, 2023 08:4222,22341,453,87918,527,0001,029,0002,281,472
24Oct 6, 2023 08:4222,27343,368,64318,569,0001,031,0002,387,968