Ar pirminis?

Taškai: 100

Compile: OK

ar_pirminis.cpp: In function ‘void pirm_f()’: ar_pirminis.cpp:19:23: warning: iteration 9999999u invokes undefined behavior [-Waggressive-loop-optimizations] if (pirminis[i]) ^ ar_pirminis.cpp:17:22: note: containing loop for (int i = 2; i<=10000001; i++) ^ ar_pirminis.cpp:13:27: warning: iteration 9999999u invokes undefined behavior [-Waggressive-loop-optimizations] pirminis[i] = true; ^ ar_pirminis.cpp:11:22: note: containing loop for (int i = 2; i<=10000001; i++) ^

nr.resulttimemessage
1True0.228 sok
2True0.276 sok
3True0.284 sok
4True0.196 sok
5True0.24 sok
6True0.252 sok
7True0.204 sok
8True0.276 sok
9True0.248 sok
10True0.22 sok
11True0.544 sok
12True0.504 sok
13True0.492 sok
14True0.172 sok
15True0.336 sok
16True0.5 sok
17True0.44 sok
18True0.316 sok
19True0.748 sok
20True0.48 sok
21True0.732 sok
22True0.648 sok