Dvyniai pirminiai

Taškai: 100

Compile: OK

dvyniai.cpp: In function ‘int main()’: dvyniai.cpp:27:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dvyniai.in", "r", stdin); ^ dvyniai.cpp:28:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dvyniai.out", "w", stdout); ^ dvyniai.cpp:9:26: warning: iteration 19999998u invokes undefined behavior [-Waggressive-loop-optimizations] isPrime[i] = true; ^ dvyniai.cpp:8:22: note: containing loop for(int i = 2; i <= n; i++){ ^

nr.resulttimemessage
1True0.288 sok
2True0.292 sok
3True0.364 sok
4True0.32 sok
5True0.4 sok
6True0.352 sok
7True0.404 sok
8True0.348 sok
9True0.32 sok
10True0.356 sok