Cody

Solution 2083477

Submitted on 8 Jan 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(circle_points(1),4))

pf = 1 y = 12

Assertion failed.

2   Fail
assert(isequal(circle_points(3),4))

pf = 3 y = 12

Assertion failed.

3   Pass
assert(isequal(circle_points(5),12))

pf = 5 y = 12

4   Pass
assert(isequal(circle_points(65),36))

pf = 5 13 y = 36

5   Pass
assert(isequal(circle_points(64090),324))

pf = 2 5 13 17 29 y = 324

6   Pass
assert(isequal(circle_points(326441),12))

pf = 326441 y = 12

7   Pass
assert(isequal(circle_points(359125),420))

pf = 5 5 5 13 13 17 y = 420

8   Pass
assert(isequal(circle_points(1000001),36))

pf = 101 9901 y = 36

9   Pass
assert(isequal(circle_points(2417899275),20))

pf = 3 3 3 5 5 11 325643 y = 20

10   Pass
assert(isequal(circle_points(31432690549),8748))

pf = 13 17 29 37 41 53 61 y = 8748

11   Pass
assert(isequal(circle_points(11472932050385),78732))

pf = 5 13 17 29 37 41 53 61 73 y = 78732

12   Pass
assert(isequal(circle_points(1021090952484265),236196))

pf = 5 13 17 29 37 41 53 61 73 89 y = 236196

13   Pass
assert(isequal(circle_points(6095127531752228),78732))

pf = 2 2 17 29 37 41 53 61 73 89 97 y = 78732

14   Pass
assert(isequal(circle_points(5*circle_points(630209)),12))

pf = 73 89 97 y = 108 pf = 2 2 3 3 3 5 y = 12

15   Fail
y=arrayfun(@(x) circle_points(x),1000:2000); [m1,m2]=max(y); assert(isequal(m1-m2,2)); [h1,h2]=hist(y,unique(y)); assert(isequal(prod(h1-h2),1399066124544000))

pf = 2 2 2 5 5 5 y = 28 pf = 7 11 13 y = 12 pf = 2 3 167 y = 12 pf = 17 59 y = 12 pf = 2 2 251 y = 12 pf = 3 5 67 y = 12 pf = 2 503 y = 12 pf = 19 53 y = 12 pf = 2 2 2 2 3 3 7 y = 12 pf = 1009 y = 12 pf = 2 5 101 y = 36 pf = 3 337 y = 12 pf = 2 2 11 23 y = 12 pf = 1013 y = 12 pf = 2 3 13 13 y = 20 pf = 5 7 29 y = 36 pf = 2 2 2 127 y = 12 pf = 3 3 113 y = 12 pf = 2 509 y = 12 pf = 1019 y = 12 pf = 2 2 3 5 17 y = 36 pf = 1021 y = 12 pf = 2 7 73 y = 12 pf = 3 11 31 y = 12 pf = 2 2 2 2 2 2 2 2 2 2 y = 12 pf = 5 5 41 y = 60 pf = 2 3 3 3 19 y = 12 pf = 13 79 y = 12 pf = 2 2 257 y = 12 pf = 3 7 7 7 y = 12 pf = 2 5 103 y = 12 pf = 1031 y = 12 pf = 2 2 2 3 43 y = 12 pf = 1033 y = 12 pf = 2 11 47 y = 12 pf = 3 3 5 23 y = 12 pf = 2 2 7 37 y = 12 pf = 17 61 y = 36 pf = 2 3 173 y = 12 pf = 1039 y = 12 pf = 2 2 2 2 5 13 y = 36 pf = 3 347 y = 12 pf = 2 521 y = 12 pf = 7 149 y = 12 pf = 2 2 3 3 29 y = 12 pf = 5 11 19 y = 12 pf = 2 523 y = 12 pf = 3 349 y = 12 pf = 2 2 2 131 y = 12 pf = 1049 y = 12 pf = 2 3 5 5 7 y = 20 pf = 1051 y = 12 pf = 2 2 263 y = 12 pf = 3 3 3 3 13 y = 12 pf = 2 17 31 y = 12 pf = 5 211 y = 12 pf = 2 2 2 2 2 3 11 y = 12 pf = 7 151 y = 12 pf = 2 23 23 y = 12 pf = 3 353 y = 12 pf = 2 2 5 53 y = 36 pf = 1061 y = 12 pf = 2 3 3 59 y = 12 pf = 1063 y = 12 pf = 2 2 2 7 19 y = 12 pf = 3 5 71 y = 12 pf = 2 13 41 y = 36 pf = 11 97 y = 12 pf = 2 2 3 89 y = 12 pf = 1069 y = 12 pf = 2 5 107 y = 12 pf = 3 3 7 17 y = 12 pf = 2 2 2 2 67 y = 12 pf = 29 37 y = 36 pf = 2 3 179 y = 12 pf = 5 5 43 y = 20 pf = 2 2 269 y = 12 pf = 3 359 y = 12 pf = 2 7 7 11 y = 12 pf = 13 83 y = 12 pf = 2 2 2 3 3 3 5 y = 12 pf = 23 47 y = 12 pf = 2 541 y = 12 pf = 3 19 19 y = 12 pf = 2 2 271 y = 12 pf = 5 7 31 y = 12 pf = 2 3 181 y = 12 pf = 1087 y = 12 pf = 2 2 2 2 2 2 17 y = 12 pf = 3 3 11 11 y = 12 pf = 2 5 109 y = 36 pf = 1091 y = 12 pf = 2 2 3 7 13 y = 12 pf = 1093 y = 12 pf = 2 547 y = 12 pf = 3 5 73 y = 36 pf = 2 2 2 137 y = 12 pf = 1097 y = 12 pf = 2 3 3 61 y = 12 pf = 7 157 y = 12 pf = 2 2 5 5 11 y = 20 pf = 3 367 y = 12 pf = 2 19 29 y = 12 pf = 1103 y = 12 pf = 2 2 2 2 3 23 y = 12 pf = 5 13 17 y = 108 pf = 2 7 79 y = 12 pf = 3 3 3 41 y = 12 pf = 2 2 277 y = 12 pf = 1109 y = 12 pf = 2 3 5 37 y = 36 pf = 11 101 y = 12 pf = 2 2 2 139 y = 12 pf = 3 7 53 y = 12 pf = 2 557 y = 12 pf = 5 223 y = 12 pf = 2 2 3 3 31 y = 12 pf = 1117 y = 12 pf = 2 13 43 y = 12 pf = 3 373 y = 12 pf = 2 2 2 2 2 5 7 y = 12 pf = 19 59 y = 12 pf = 2 3 11 17 y = 12 pf = 1123 y = 12 pf = 2 2 281 y = 12 pf = 3 3 5 5 5 y = 28 pf = 2 563 y = 12 pf = 7 7 23 y = 12 pf = 2 2 2 3 47 y = 12 pf = 1129 y = 12 pf = 2 5 113 y = 36 pf = 3 13 29 y = 36 pf = 2 2 283 y = 12 pf = 11 103 y = 12 pf = 2 3 3 3 3 7 y = 12 pf = 5 227 y = 12 pf = 2 2 2 2 71 y = 12 pf = 3 379 y = 12 pf = 2 569 y = 12 pf = 17 67 y = 12 pf = 2 2 3 5 19 y = 12 pf = 7 163 y = 12 pf = 2 571 y = 12 pf = 3 3 127 y = 12 pf = 2 2 2 11 13 y = 12 pf = 5 229 y = 36 pf = 2 3 191 y = 12 pf = 31 37 y = 12 pf = 2 2 7 41 y = 12 pf = 3 383 y = 12 pf = 2 5 5 23 y = 20 pf = 1151 y = 12 pf = 2 2 2 2 2 2 2 3 3 y = 12 pf = 1153 y = 12 pf = 2 577 y = 12 pf = 3 5 7 11 y = 12 pf = 2 2 17 17 y = 20 pf = 13 89 y = 36 pf = 2 3 193 y = 12 pf = 19 61 y = 12 pf = 2 2 2 5 29 y = 36 pf = 3 3 3 43 y = 12 pf = 2 7 83 y = 12 pf = 1163 y = 12 pf = 2 2 3 97 y = 12 pf = 5 233 y = 36 pf = 2 11 53 y = 12 pf = 3 389 y = 12 pf = 2 2 2 2 73 y = 12 pf = 7 167 y = 12 pf = 2 3 3 5 13 y = 36 pf = 1171 y = 12 pf = 2 2 293 y = 12 pf = 3 17 23 y = 12 pf = 2 587 y = 12 pf = 5 5 47 y = 20 pf = 2 2 2 3 7 7 y = 12 pf = 11 107 y = 12 pf = 2 19 31 y = 12 pf = 3 3 131 y = 12 pf = 2 2 5 59 y = 12 pf = 1181 y = 12 pf = 2 3 197 y = 12 pf = 7 13 13 y = 20 pf = 2 2 2 2 2 37 y = 12 pf = 3 5 79 y = 12 pf = 2 593 y = 12 pf = 1187 y = 12 pf = 2 2 3 3 3 11 y = 12 pf = 29 41 y = 36 pf = 2 5 7 17 y = 36 pf = 3 397 y = 12 pf = 2 2 2 149 y = 12 pf = 1193 y = 12 pf = 2 3 199 y = 12 pf = 5 239 y = 12 pf = 2 2 13 23 y = 12 pf = 3 3 7 19 y = 12 pf = 2 599 y = 12 pf = 11 109 y = 12 pf = 2 2 2 2 3 5 5 y = 20 pf = 1201 y = 12 pf = 2 601 y = 12 pf = 3 401 y = 12 pf = 2 2 7 43 y = 12 pf = 5 241 y = 36 pf = 2 3 3 67 y = 12 pf = 17 71 y = 12 pf = 2 2 2 151 y = 12 pf = 3 13 31 y = 12 pf = 2 5 11 11 y = 12 pf = 7 173 y = 12 pf = 2 2 3 101 y = 12 pf = 1213 y = 12 pf = 2 607 y = 12 pf = 3 3 3 3 3 5 y = 12 pf = 2 2 2 2 2 2 19 y = 12 pf = 1217 y = 12 pf = 2 3 7 29 y = 12 pf = 23 53 y = 12 pf = 2 2 5 61 y = 36 pf = 3 11 37 y = 12 pf = 2 13 47 y = 12 pf = 1223 y = 12 pf = 2 2 2 3 3 17 y = 12 pf = 5 5 7 7 y = 20 pf = 2 613 y = 12 pf = 3 409 y = 12 pf = 2 2 307 y = 12 pf = 1229 y = 12 pf = 2 3 5 41 y = 36 pf = 1231 y = 12 pf = 2 2 2 2 7 11 y = 12 pf = 3 3 137 y = 12 pf = 2 617 y = 12 pf = 5 13 19 y = 36 pf = 2 2 3...

Assertion failed.