Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Optimization
Boost 1.68.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=c++17
1 2
2 3
3 5
4 7
5 11
6 101
7 131
8 151
9 181
10 191
11 313
12 353
13 373
14 383
15 727
16 757
17 787
18 797
19 919
20 929
21 10301
22 10501
23 10601
24 11311
25 11411
26 12421
27 12721
28 12821
29 13331
30 13831
31 13931
32 14341
33 14741
34 15451
35 15551
36 16061
37 16361
38 16561
39 16661
40 17471
41 17971
42 18181
43 18481
44 19391
45 19891
46 19991
47 30103
48 30203
49 30403
50 30703
51 30803
52 31013
53 31513
54 32323
55 32423
56 33533
57 34543
58 34843
59 35053
60 35153
61 35353
62 35753
63 36263
64 36563
65 37273
66 37573
67 38083
68 38183
69 38783
70 39293
71 70207
72 70507
73 70607
74 71317
75 71917
76 72227
77 72727
78 73037
79 73237
80 73637
81 74047
82 74747
83 75557
84 76367
85 76667
86 77377
87 77477
88 77977
89 78487
90 78787
91 78887
92 79397
93 79697
94 79997
95 90709
96 91019
97 93139
98 93239
99 93739
100 94049
47995 99999199999
Exit Code:
0