Ar pirminis?

Taškai: 100

Compile: OK

ar_pirminis.cpp: In function ‘int main()’: ar_pirminis.cpp:14:56: warning: iteration 10000000u invokes undefined behavior [-Waggressive-loop-optimizations] for(int i = 1; i <= 10000001; i++) pirminiai[i] = 0; ^ ar_pirminis.cpp:14:22: note: containing loop for(int i = 1; i <= 10000001; i++) pirminiai[i] = 0; ^

nr.resulttimemessage
1True0.364 sok
2True0.424 sok
3True0.452 sok
4True0.464 sok
5True0.448 sok
6True0.412 sok
7True0.44 sok
8True0.408 sok
9True0.44 sok
10True0.444 sok
11True0.672 sok
12True0.9 sok
13True0.648 sok
14True0.396 sok
15True0.724 sok
16True0.804 sok
17True0.672 sok
18True0.528 sok
19True0.864 sok
20True0.768 sok
21True0.912 sok
22True0.744 sok