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 listMay 20, 2024 19:04Ivan BessonovIvan BessonovScore: 15,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:0315,36830,239,82813,524,00002,289,664
2May 20, 2024 19:0315,42531,215,79112,530,0001,044,0002,289,664
3May 20, 2024 19:0415,47433,695,42213,617,00002,347,008
4May 20, 2024 19:0315,48435,638,47512,578,0001,048,0002,351,104
5May 20, 2024 19:0315,49334,687,13012,586,0001,048,0002,289,664
6May 20, 2024 19:0315,52230,146,34812,609,0001,050,0002,342,912
7May 20, 2024 19:0415,52432,276,07012,611,0001,050,0002,342,912
8May 20, 2024 19:0415,52735,001,77512,613,0001,051,0002,285,568
9May 20, 2024 19:0415,53834,949,95813,673,00002,437,120
10May 20, 2024 19:0315,54239,688,20512,625,0001,052,0002,289,664
11May 20, 2024 19:0315,56530,192,36212,644,0001,053,0002,334,720
12May 20, 2024 19:0415,59727,528,84512,670,0001,055,0002,420,736
13May 20, 2024 19:0315,66034,447,92412,721,0001,060,0002,289,664
14May 20, 2024 19:0416,10030,502,30212,144,0002,024,0002,334,720
15May 20, 2024 19:0416,13631,396,67112,172,0002,028,0002,347,008
16May 20, 2024 19:0316,14130,607,40612,175,0002,029,0002,289,664
17May 20, 2024 19:0416,15132,748,90013,198,0001,015,0002,342,912
18May 20, 2024 19:0416,19738,207,93812,217,0002,036,0002,347,008
19May 20, 2024 19:0416,36879,201,13914,403,52302,252,800
20May 20, 2024 19:0416,37977,275,30914,413,64202,187,264
21May 20, 2024 19:0316,43375,693,21414,461,24902,195,456
22May 20, 2024 19:0416,46781,603,51214,491,04402,314,240
23May 20, 2024 19:0316,84588,300,44314,823,51702,195,456
24May 20, 2024 19:0316,98585,001,48214,947,00302,199,552