Ar pirminis?
- [1] 2018-11-17 14:25 (90.9)
- [2] 2018-11-17 14:35 (90.9)
- [3] 2018-11-17 14:37 (90.9)
- [4] 2018-11-17 15:40 (0)
- [5] 2018-11-17 15:42 (100)
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. | result | time | message |
---|---|---|---|
1 | True | 0.192 s | ok |
2 | True | 0.26 s | ok |
3 | True | 0.244 s | ok |
4 | True | 0.24 s | ok |
5 | True | 0.244 s | ok |
6 | True | 0.296 s | ok |
7 | True | 0.224 s | ok |
8 | True | 0.272 s | ok |
9 | True | 0.272 s | ok |
10 | True | 0.272 s | ok |
11 | True | 0.48 s | ok |
12 | True | 0.572 s | ok |
13 | True | 0.488 s | ok |
14 | True | 0.18 s | ok |
15 | True | 0.404 s | ok |
16 | True | 0.68 s | ok |
17 | True | 0.524 s | ok |
18 | True | 0.42 s | ok |
19 | True | 0.912 s | ok |
20 | True | 0.64 s | ok |
21 | True | 0.852 s | ok |
22 | True | 0.664 s | ok |