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 13:59Ivan BessonovIvan BessonovScore: 15,582Success
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 15:1315,33333,780,31313,493,00002,289,664
2May 20, 2024 13:5915,36530,101,57813,521,00002,342,912
3May 20, 2024 14:1115,38333,123,35013,537,00002,289,664
4May 20, 2024 14:1115,38835,847,30013,541,00002,289,664
5May 20, 2024 15:1315,39332,333,53312,504,0001,042,0002,289,664
6May 20, 2024 14:4415,41438,760,70312,521,0001,043,0002,289,664
7May 20, 2024 14:1115,41730,241,34412,524,0001,043,0002,289,664
8May 20, 2024 14:4415,42329,725,32312,528,0001,044,0002,289,664
9May 20, 2024 14:4415,42731,694,93412,532,0001,044,0002,338,816
10May 20, 2024 15:1315,44328,999,06912,545,0001,045,0002,289,664
11May 20, 2024 13:5915,45035,516,79912,551,0001,045,0002,289,664
12May 20, 2024 14:4415,45339,458,71312,553,0001,046,0002,338,816
13May 20, 2024 14:4415,45533,278,04013,600,00002,289,664
14May 20, 2024 15:1315,45529,044,10112,554,0001,046,0002,289,664
15May 20, 2024 14:1115,45631,013,09912,555,0001,046,0002,289,664
16May 20, 2024 14:1115,45735,903,28513,602,00002,289,664
17May 20, 2024 15:1315,47031,460,78912,567,0001,047,0002,347,008
18May 20, 2024 15:1315,47230,508,60613,615,00002,285,568
19May 20, 2024 14:1115,47331,383,49813,616,00002,338,816
20May 20, 2024 13:5915,50131,473,32612,592,0001,049,0002,334,720
21May 20, 2024 15:1315,50630,059,79712,596,0001,049,0002,289,664
22May 20, 2024 14:1115,51933,065,24012,607,0001,050,0002,289,664
23May 20, 2024 13:5915,53633,950,67612,621,0001,051,0002,338,816
24May 20, 2024 13:5915,56832,113,06512,647,0001,053,0002,342,912
25May 20, 2024 14:1115,58242,049,33712,658,0001,054,0002,334,720
26May 20, 2024 13:5915,60630,694,26712,677,0001,056,0002,289,664
27May 20, 2024 13:5915,95230,724,56013,036,0001,002,0002,424,832
28May 20, 2024 13:5915,97886,911,79714,060,92302,199,552
29May 20, 2024 14:4415,98631,727,15912,059,0002,009,0002,289,664
30May 20, 2024 14:4416,03474,573,26814,110,11702,199,552
31May 20, 2024 15:1316,05531,336,93812,110,0002,018,0002,428,928
32May 20, 2024 13:5916,08041,440,30212,129,0002,021,0002,289,664
33May 20, 2024 15:1316,098100,487,54914,166,47102,191,360
34May 20, 2024 13:5916,10230,284,10212,146,0002,024,0002,342,912
35May 20, 2024 14:4416,10838,106,49713,163,0001,012,0002,289,664
36May 20, 2024 14:4416,11730,601,69012,157,0002,026,0002,347,008
37May 20, 2024 14:4416,15229,688,20212,184,0002,030,0002,289,664
38May 20, 2024 15:1316,15229,279,59912,184,0002,030,0002,289,664
39May 20, 2024 14:1116,19029,833,59612,212,0002,035,0002,289,664
40May 20, 2024 14:1116,37984,809,71514,413,38402,191,360
41May 20, 2024 15:1316,411106,432,59314,441,92202,322,432
42May 20, 2024 14:4416,49177,354,23214,511,72602,199,552
43May 20, 2024 14:4416,53886,015,79014,553,61002,203,648
44May 20, 2024 15:1316,75196,592,15414,740,86702,322,432
45May 20, 2024 14:1116,75774,619,82814,746,02802,334,720
46May 20, 2024 13:5916,77862,618,25114,764,52302,334,720
47May 20, 2024 13:5916,93981,427,31714,905,99702,191,360
48May 20, 2024 14:1116,97280,964,77014,935,32402,322,432