Ar pirminis?

Taškai: 45.5

Compile: OK

ar_pirminis.cpp: In function ‘int main()’: ar_pirminis.cpp:14:21: warning: iteration 999999u invokes undefined behavior [-Waggressive-loop-optimizations] if(isPrime[i]) ^ ar_pirminis.cpp:12:19: note: containing loop for(int i=2; i<=sk; i++) ^ ar_pirminis.cpp:11:24: warning: iteration 999999u invokes undefined behavior [-Waggressive-loop-optimizations] isPrime[i]=true; ^ ar_pirminis.cpp:10:19: note: containing loop for(int i=2; i<sk+1; i++) ^

nr.resulttimemessage
1True0.012 sok
2True0.02 sok
3True0.02 sok
4True0.012 sok
5True0.02 sok
6True0.02 sok
7True0.008 sok
8True0.008 sok
9True0.012 sok
10True0.016 sok
11False0.008 sCaught fatal signal 11
12False0.008 sCaught fatal signal 11
13False0.012 sCaught fatal signal 11
14False0.008 sCaught fatal signal 11
15False0.008 sCaught fatal signal 11
16False0.008 sCaught fatal signal 11
17False0.008 sCaught fatal signal 11
18False0.008 sCaught fatal signal 11
19False0.012 sCaught fatal signal 11
20False0.02 sCaught fatal signal 11
21False0.012 sCaught fatal signal 11
22False0.016 sCaught fatal signal 11