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 listDec 29, 2022 03:11Yuriy LyfenkoYuriy LyfenkoScore: 28,358Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 03:0428,07855,177,67924,709,00002,392,064
2Dec 29, 2022 03:0428,12058,272,21423,715,0001,031,0002,265,088
3Dec 29, 2022 03:0428,12748,213,21524,752,00002,387,968
4Dec 29, 2022 03:0428,13049,245,83723,723,0001,031,0002,392,064
5Dec 29, 2022 03:0028,14950,795,58823,739,0001,032,0002,396,160
6Dec 29, 2022 03:1128,15851,225,11523,747,0001,032,0002,392,064
7Dec 29, 2022 03:0428,29052,853,21922,904,0001,991,0002,392,064
8Dec 29, 2022 03:0428,29153,296,77723,901,000995,0002,387,968
9Dec 29, 2022 03:1128,29152,793,60922,905,0001,991,0002,383,872
10Dec 29, 2022 03:1128,29249,722,27723,902,000995,0002,527,232
11Dec 29, 2022 03:1128,30153,807,15623,909,000996,0002,527,232
12Dec 29, 2022 03:0028,31042,094,28123,917,000996,0002,527,232
13Dec 29, 2022 03:0028,31157,148,48622,921,0001,993,0002,265,088
14Dec 29, 2022 03:0028,31154,790,39924,914,00002,392,064
15Dec 29, 2022 03:0028,32053,616,11723,926,000996,0002,527,232
16Dec 29, 2022 03:0028,34558,251,42222,949,0001,995,0002,265,088
17Dec 29, 2022 03:0428,34749,180,58622,950,0001,995,0002,387,968
18Dec 29, 2022 03:0428,35649,189,29322,957,0001,996,0002,396,160
19Dec 29, 2022 03:1128,35850,667,47223,957,000998,0002,527,232
20Dec 29, 2022 03:1128,36749,459,02022,966,0001,997,0002,383,872
21Dec 29, 2022 03:1128,37255,500,59223,969,000998,0002,527,232
22Dec 29, 2022 03:1128,37453,418,41723,971,000998,0002,392,064
23Dec 29, 2022 03:1128,39051,231,19822,985,0001,998,0002,265,088
24Dec 29, 2022 03:0428,39151,674,92822,986,0001,998,0002,265,088
25Dec 29, 2022 03:0028,44847,698,32923,032,0002,002,0002,392,064
26Dec 29, 2022 03:0028,49151,123,18023,067,0002,005,0002,387,968
27Dec 29, 2022 03:0028,52455,995,97024,097,0001,004,0002,527,232
28Dec 29, 2022 03:0428,77281,992,53825,319,28702,228,224
29Dec 29, 2022 03:0028,82788,150,12025,368,09802,232,320
30Dec 29, 2022 03:0028,93086,087,59725,458,06702,240,512
31Dec 29, 2022 03:0429,00892,742,88925,527,32002,228,224
32Dec 29, 2022 03:1129,04097,798,32325,554,94802,232,320
33Dec 29, 2022 03:1129,07392,263,62725,584,15102,228,224
34Dec 29, 2022 03:0029,07695,584,33625,586,44102,232,320
35Dec 29, 2022 03:0429,13991,623,09425,642,41102,228,224
36Dec 29, 2022 03:1129,25192,511,04225,740,46402,244,608