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 18:54Yuriy LyfenkoYuriy LyfenkoScore: 44,943Success
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 18:5532,35690,732,11928,472,84502,211,840
2Jun 27, 2021 18:5432,43498,265,44128,542,16402,224,128
3Jun 27, 2021 18:5532,44099,906,11728,546,98702,220,032
4Jun 27, 2021 18:5432,480107,119,98028,582,24102,220,032
5Jun 27, 2021 18:5532,48490,774,39828,585,55502,220,032
6Jun 27, 2021 18:5532,48496,837,96428,585,57202,224,128
7Jun 27, 2021 18:5532,51468,249,81128,612,41102,224,128
8Jun 27, 2021 18:5532,51597,955,82828,613,20602,220,032
9Jun 27, 2021 18:5432,60697,977,99528,693,62402,220,032
10Jun 27, 2021 18:5444,75074,489,44638,371,0001,009,0002,269,184
11Jun 27, 2021 18:5544,84960,901,48539,467,00002,506,752
12Jun 27, 2021 18:5544,85163,906,18538,457,0001,012,0002,269,184
13Jun 27, 2021 18:5544,85969,474,91039,476,00002,375,680
14Jun 27, 2021 18:5544,86661,507,50638,470,0001,012,0002,269,184
15Jun 27, 2021 18:5544,87062,278,42839,486,00002,269,184
16Jun 27, 2021 18:5544,87868,153,22938,481,0001,012,0002,494,464
17Jun 27, 2021 18:5544,89462,042,03738,494,0001,013,0002,269,184
18Jun 27, 2021 18:5544,91464,861,54338,511,0001,013,0002,265,088
19Jun 27, 2021 18:5444,94365,747,77439,550,00002,379,776
20Jun 27, 2021 18:5544,95161,674,15338,543,0001,014,0002,379,776
21Jun 27, 2021 18:5444,96363,536,95739,567,00002,379,776
22Jun 27, 2021 18:5444,97260,875,56739,575,00002,379,776
23Jun 27, 2021 18:5544,98061,756,45839,582,00002,379,776
24Jun 27, 2021 18:5544,99462,469,67539,595,00002,269,184
25Jun 27, 2021 18:5545,01562,874,20138,598,0001,015,0002,375,680
26Jun 27, 2021 18:5445,01863,797,64038,601,0001,015,0002,269,184
27Jun 27, 2021 18:5445,02266,841,85039,619,00002,269,184
28Jun 27, 2021 18:5545,02865,258,44738,609,0001,016,0002,269,184
29Jun 27, 2021 18:5545,03366,776,09838,613,0001,016,0002,379,776
30Jun 27, 2021 18:5445,03462,734,63338,614,0001,016,0002,387,968
31Jun 27, 2021 18:5545,05770,194,68038,634,0001,016,0002,269,184
32Jun 27, 2021 18:5445,06060,298,82539,653,00002,371,584
33Jun 27, 2021 18:5545,19764,390,98738,754,0001,019,0002,453,504
34Jun 27, 2021 18:5545,20763,148,90738,762,0001,020,0002,371,584
35Jun 27, 2021 18:5545,35364,653,48439,911,00002,269,184
36Jun 27, 2021 18:5448,90067,844,71941,031,0002,001,0002,375,680