Cody

# Problem 1066. Multiples of a Number in a Given Range

Solution 1996286

Submitted on 30 Oct 2019
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(bounded_multiples(66,119,163),132))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint1 (line 1) In solutionTest (line 3)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test1 (line 1) assert(isequal(bounded_multiples(66,119,163),132))

2   Fail
assert(isequal(bounded_multiples(50,341,960),[350 400 450 500 550 600 650 700 750 800 850 900 950]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test2 (line 1) assert(isequal(bounded_multiples(50,341,960),[350 400 450 500 550 600 650 700 750 800 850 900 950]))

3   Fail
assert(isequal(bounded_multiples(59,224,752),[236 295 354 413 472 531 590 649 708]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test3 (line 1) assert(isequal(bounded_multiples(59,224,752),[236 295 354 413 472 531 590 649 708]))

4   Fail
assert(isequal(bounded_multiples(26,506,700),[520 546 572 598 624 650 676]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test4 (line 1) assert(isequal(bounded_multiples(26,506,700),[520 546 572 598 624 650 676]))

5   Fail
assert(isequal(bounded_multiples(90,548,960),[630 720 810 900]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint5 (line 1) In solutionTest (line 11)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test5 (line 1) assert(isequal(bounded_multiples(90,548,960),[630 720 810 900]))

6   Fail
assert(isequal(bounded_multiples(14,150,258),[154 168 182 196 210 224 238 252]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint6 (line 1) In solutionTest (line 13)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test6 (line 1) assert(isequal(bounded_multiples(14,150,258),[154 168 182 196 210 224 238 252]))

7   Fail
assert(isequal(bounded_multiples(85,255,815),[255 340 425 510 595 680 765]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint7 (line 1) In solutionTest (line 15)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test7 (line 1) assert(isequal(bounded_multiples(85,255,815),[255 340 425 510 595 680 765]))

8   Fail
assert(isequal(bounded_multiples(25,350,930),[350 375 400 425 450 475 500 525 550 575 600 625 650 675 700 725 750 775 800 825 850 875 900 925]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint8 (line 1) In solutionTest (line 17)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test8 (line 1) assert(isequal(bounded_multiples(25,350,930),[350 375 400 425 450 475 500 525 550 575 600 625 650 675 700 725 750 775 800 825 850 875 900 925]))

9   Fail
assert(isequal(bounded_multiples(20,252,617),[260 280 300 320 340 360 380 400 420 440 460 480 500 520 540 560 580 600]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint9 (line 1) In solutionTest (line 19)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test9 (line 1) assert(isequal(bounded_multiples(20,252,617),[260 280 300 320 340 360 380 400 420 440 460 480 500 520 540 560 580 600]))

10   Fail
assert(isequal(bounded_multiples(48,352,831),[384 432 480 528 576 624 672 720 768 816]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint10 (line 1) In solutionTest (line 21)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test10 (line 1) assert(isequal(bounded_multiples(48,352,831),[384 432 480 528 576 624 672 720 768 816]))

11   Fail
assert(isequal(bounded_multiples(59,550,918),[590 649 708 767 826 885]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint11 (line 1) In solutionTest (line 23)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test11 (line 1) assert(isequal(bounded_multiples(59,550,918),[590 649 708 767 826 885]))

12   Fail
assert(isequal(bounded_multiples(29,754,758),754))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint12 (line 1) In solutionTest (line 25)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test12 (line 1) assert(isequal(bounded_multiples(29,754,758),754))

13   Fail
assert(isequal(bounded_multiples(39,76,568),[78 117 156 195 234 273 312 351 390 429 468 507 546]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint13 (line 1) In solutionTest (line 27)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test13 (line 1) assert(isequal(bounded_multiples(39,76,568),[78 117 156 195 234 273 312 351 390 429 468 507 546]))

14   Fail
assert(isequal(bounded_multiples(6,531,780),[534 540 546 552 558 564 570 576 582 588 594 600 606 612 618 624 630 636 642 648 654 660 666 672 678 684 690 696 702 708 714 720 726 732 738 744 750 756 762 768 774 780]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint14 (line 1) In solutionTest (line 29)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test14 (line 1) assert(isequal(bounded_multiples(6,531,780),[534 540 546 552 558 564 570 576 582 588 594 600 606 612 618 624 630 636 642 648 654 660 666 672 678 684 690 696 702 708 714 720 726 732 738 744 750 756 762 768 774 780]))

15   Fail
assert(isequal(bounded_multiples(94,130,569),[188 282 376 470 564]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint15 (line 1) In solutionTest (line 31)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test15 (line 1) assert(isequal(bounded_multiples(94,130,569),[188 282 376 470 564]))

16   Fail
assert(isequal(bounded_multiples(47,12,338),[47 94 141 188 235 282 329]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint16 (line 1) In solutionTest (line 33)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test16 (line 1) assert(isequal(bounded_multiples(47,12,338),[47 94 141 188 235 282 329]))

17   Fail
assert(isequal(bounded_multiples(17,312,795),[323 340 357 374 391 408 425 442 459 476 493 510 527 544 561 578 595 612 629 646 663 680 697 714 731 748 765 782]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint17 (line 1) In solutionTest (line 35)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test17 (line 1) assert(isequal(bounded_multiples(17,312,795),[323 340 357 374 391 408 425 442 459 476 493 510 527 544 561 578 595 612 629 646 663 680 697 714 731 748 765 782]))

18   Fail
assert(isequal(bounded_multiples(53,166,602),[212 265 318 371 424 477 530 583]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint18 (line 1) In solutionTest (line 37)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test18 (line 1) assert(isequal(bounded_multiples(53,166,602),[212 265 318 371 424 477 530 583]))

19   Fail
assert(isequal(bounded_multiples(27,655,690),675))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint19 (line 1) In solutionTest (line 39)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test19 (line 1) assert(isequal(bounded_multiples(27,655,690),675))

20   Fail
assert(isequal(bounded_multiples(75,84,451),[150 225 300 375 450]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In bounded_multiples (line 2) In ScoringEngineTestPoint20 (line 1) In solutionTest (line 41)]

Output argument "ans" (and maybe others) not assigned during call to "bounded_multiples". Error in Test20 (line 1) assert(isequal(bounded_multiples(75,84,451),[150 225 300 375 450]))