Ar pirminis?

Taškai: 100

Compile: OK

ar_pirminis.cpp: In function ‘void prime()’: ar_pirminis.cpp:25:21: warning: iteration 9999998u invokes undefined behavior [-Waggressive-loop-optimizations] if (isprim[i]==true){ ^ ar_pirminis.cpp:24:26: note: containing loop for (long long i=2;i<=10000000;i++){ ^

nr.resulttimemessage
1True0.192 sok
2True0.26 sok
3True0.244 sok
4True0.24 sok
5True0.244 sok
6True0.296 sok
7True0.224 sok
8True0.272 sok
9True0.272 sok
10True0.272 sok
11True0.48 sok
12True0.572 sok
13True0.488 sok
14True0.18 sok
15True0.404 sok
16True0.68 sok
17True0.524 sok
18True0.42 sok
19True0.912 sok
20True0.64 sok
21True0.852 sok
22True0.664 sok