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 listJun 27, 2021 04:52Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 04:5100000Error: expected "51253737484270 ", got "51253737484131 "
2Jun 27, 2021 04:5933,96495,360,74629,887,88102,220,032
3Jun 27, 2021 04:5133,985100,602,20129,906,50402,215,936
4Jun 27, 2021 04:5233,98791,372,76129,908,50302,224,128
5Jun 27, 2021 04:5934,00594,817,40329,924,30002,220,032
6Jun 27, 2021 04:5934,032101,378,92029,948,52102,220,032
7Jun 27, 2021 04:5234,051105,330,60629,965,13002,215,936
8Jun 27, 2021 04:5234,07888,687,24629,988,38502,220,032
9Jun 27, 2021 04:5134,102102,075,56830,009,63302,224,128
10Jun 27, 2021 04:5134,147103,634,58430,049,69902,215,936
11Jun 27, 2021 04:5935,53554,929,61730,263,0001,008,0002,269,184
12Jun 27, 2021 04:5235,53555,536,69030,263,0001,008,0002,269,184
13Jun 27, 2021 04:5135,56755,046,85531,299,00002,269,184
14Jun 27, 2021 04:5135,56861,836,40031,300,00002,269,184
15Jun 27, 2021 04:5235,58554,708,06230,305,0001,010,0002,379,776
16Jun 27, 2021 04:5935,59253,668,95331,321,00002,269,184
17Jun 27, 2021 04:5235,60053,522,11731,328,00002,383,872
18Jun 27, 2021 04:5135,60355,893,16631,331,00002,269,184
19Jun 27, 2021 04:5135,62856,381,31531,353,00002,269,184
20Jun 27, 2021 04:5935,63654,194,16630,349,0001,011,0002,469,888
21Jun 27, 2021 04:5935,63956,391,23930,351,0001,011,0002,269,184
22Jun 27, 2021 04:5235,64254,158,66431,365,00002,269,184
23Jun 27, 2021 04:5135,65357,670,38830,363,0001,012,0002,265,088
24Jun 27, 2021 04:5935,65851,490,20131,379,00002,379,776
25Jun 27, 2021 04:5235,66854,500,75431,388,00002,383,872
26Jun 27, 2021 04:5135,67856,239,48531,397,00002,379,776
27Jun 27, 2021 04:5235,68858,568,70031,405,00002,269,184
28Jun 27, 2021 04:5935,71652,290,96031,430,00002,371,584
29Jun 27, 2021 04:5935,72253,433,32030,421,0001,014,0002,502,656
30Jun 27, 2021 04:5135,73154,580,35030,429,0001,014,0002,383,872
31Jun 27, 2021 04:5135,73452,686,76130,432,0001,014,0002,265,088
32Jun 27, 2021 04:5235,74352,563,55930,440,0001,014,0002,469,888
33Jun 27, 2021 04:5935,77255,393,69331,479,00002,273,280
34Jun 27, 2021 04:5235,77654,827,36630,468,0001,015,0002,265,088
35Jun 27, 2021 04:5235,79954,734,35030,487,0001,016,0002,269,184
36Jun 27, 2021 04:5935,85553,529,48331,552,00002,269,184
37Jun 27, 2021 04:5135,90559,648,27630,577,0001,019,0002,379,776