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 listJul 8, 2021 17:07Yuriy LyfenkoYuriy LyfenkoScore: 39,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:0731,00993,981,23227,288,20402,228,224
2Jul 8, 2021 17:0631,03294,404,44327,307,81002,224,128
3Jul 8, 2021 17:0631,07194,955,89227,342,66402,224,128
4Jul 8, 2021 17:0731,11793,853,56627,383,32402,215,936
5Jul 8, 2021 17:0731,13094,464,30027,394,02002,224,128
6Jul 8, 2021 17:0731,13579,502,69027,399,19702,224,128
7Jul 8, 2021 17:0731,15097,734,56227,411,88002,215,936
8Jul 8, 2021 17:0731,19885,793,86027,454,25502,224,128
9Jul 8, 2021 17:0631,20296,765,94227,457,64202,224,128
10Jul 8, 2021 17:0739,29157,498,47234,576,00002,269,184
11Jul 8, 2021 17:0739,31859,713,49933,583,0001,017,0002,379,776
12Jul 8, 2021 17:0639,32754,954,61034,608,00002,269,184
13Jul 8, 2021 17:0739,33062,968,50533,593,0001,017,0002,383,872
14Jul 8, 2021 17:0739,37557,832,18533,631,0001,019,0002,375,680
15Jul 8, 2021 17:0639,37863,914,66334,653,00002,269,184
16Jul 8, 2021 17:0739,43159,152,16333,679,0001,020,0002,379,776
17Jul 8, 2021 17:0739,43263,136,17834,700,00002,379,776
18Jul 8, 2021 17:0639,43359,193,98534,701,00002,269,184
19Jul 8, 2021 17:0739,44161,323,64234,708,00002,379,776
20Jul 8, 2021 17:0639,45659,231,27334,721,00002,375,680
21Jul 8, 2021 17:0639,46759,258,09633,710,0001,021,0002,367,488
22Jul 8, 2021 17:0639,47565,657,35133,717,0001,021,0002,269,184
23Jul 8, 2021 17:0639,47561,797,42832,753,0001,985,0002,371,584
24Jul 8, 2021 17:0739,48160,687,81934,743,00002,269,184
25Jul 8, 2021 17:0739,49961,068,95733,737,0001,022,0002,371,584
26Jul 8, 2021 17:0739,50563,114,08633,742,0001,022,0002,265,088
27Jul 8, 2021 17:0639,50965,291,37633,746,0001,022,0002,375,680
28Jul 8, 2021 17:0739,61064,656,54233,862,000995,0002,273,280
29Jul 8, 2021 17:0739,63061,427,67033,878,000996,0002,269,184
30Jul 8, 2021 17:0739,64066,429,30633,887,000996,0002,269,184
31Jul 8, 2021 17:0739,64561,403,59232,895,0001,993,0002,269,184
32Jul 8, 2021 17:0739,64860,989,30833,894,000996,0002,269,184
33Jul 8, 2021 17:0639,64860,965,46032,897,0001,993,0002,269,184
34Jul 8, 2021 17:0739,65861,510,31033,902,000997,0002,269,184
35Jul 8, 2021 17:0739,67359,964,08133,915,000997,0002,269,184
36Jul 8, 2021 17:0739,67660,499,63232,920,0001,995,0002,269,184