Cody

Problem 2721. Pandigital Factors (Based on Euler 491)

Solution 569715

Submitted on 29 Jan 2015 by J.R.! Menzinger
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   Pass
%% x = 4;y=7; y_correct = 13; assert(isequal(pandigit_factors(x,y),y_correct));

ans = 13

2   Pass
%% x = 3;y=3; y_correct = 18; assert(isequal(pandigit_factors(x,y),y_correct));

ans = 18

3   Pass
%% x = 8;y=8; y_correct = 45360; assert(isequal(pandigit_factors(x,y),y_correct));

ans = 45360

4   Pass
%% j=[600 312 600 144 216 312 75 74 0 120 0 144 55]; x=5;y=ceil(13*rand) assert(isequal(pandigit_factors(x,y),j(y)));

y = 9 ans = 0

5   Pass
%% x=1;y=10; assert(isequal(pandigit_factors(x,y),x));

ans = 1