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:33Robert BurkeRobert BurkeScore: 22,070Success
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:3318,02173,867,76515,858,52602,228,224
2Oct 6, 2023 08:3418,03672,297,24115,872,01302,236,416
3Oct 6, 2023 08:3318,07680,806,78215,906,69202,228,224
4Oct 6, 2023 08:3318,11774,380,31415,942,63102,236,416
5Oct 6, 2023 08:3418,13486,220,24015,958,10102,232,320
6Oct 6, 2023 08:3418,22759,675,28016,039,33702,228,224
7Oct 6, 2023 08:3321,82045,374,09317,181,0002,021,0002,273,280
8Oct 6, 2023 08:3421,85043,083,20518,216,0001,012,0002,400,256
9Oct 6, 2023 08:3321,95940,360,52218,307,0001,017,0002,535,424
10Oct 6, 2023 08:3421,98937,942,37419,350,00002,400,256
11Oct 6, 2023 08:3422,00939,523,29919,368,00002,273,280
12Oct 6, 2023 08:3422,04736,415,64818,380,0001,021,0002,400,256
13Oct 6, 2023 08:3322,07037,629,91518,400,0001,022,0002,396,160
14Oct 6, 2023 08:3422,07231,462,99118,401,0001,022,0002,400,256
15Oct 6, 2023 08:3322,07242,023,01618,401,0001,022,0002,273,280
16Oct 6, 2023 08:3322,08151,410,42918,409,0001,022,0002,273,280
17Oct 6, 2023 08:3322,08946,488,70819,438,00002,273,280
18Oct 6, 2023 08:3422,12240,061,06619,467,00002,273,280
19Oct 6, 2023 08:3322,15641,497,13317,445,0002,052,0002,400,256
20Oct 6, 2023 08:3422,15945,567,73218,474,0001,026,0002,535,424
21Oct 6, 2023 08:3422,18440,401,66119,522,00002,535,424
22Oct 6, 2023 08:3322,18441,564,68819,522,00002,273,280
23Oct 6, 2023 08:3322,27336,129,38719,600,00002,396,160
24Oct 6, 2023 08:3422,28239,000,55618,576,0001,032,0002,404,352