Test  Status  Code Input and Output 

1  Fail 
x = 999;
y_correct = 906609;
assert(isequal(euler004(x),y_correct))
u =
'998001'
v =
'100899'
u =
'997002'
v =
'200799'
u =
'996003'
v =
'300699'
u =
'995004'
v =
'400599'
u =
'994005'
v =
'500499'
u =
'993006'
v =
'600399'
u =
'992007'
v =
'700299'
u =
'991008'
v =
'800199'
u =
'990009'
v =
'900099'
u =
'989010'
v =
'010989'
u =
'988011'
v =
'110889'
u =
'997002'
v =
'200799'
u =
'996004'
v =
'400699'
u =
'995006'
v =
'600599'
u =
'994008'
v =
'800499'
u =
'993010'
v =
'010399'
u =
'992012'
v =
'210299'
u =
'991014'
v =
'410199'
u =
'990016'
v =
'610099'
u =
'989018'
v =
'810989'
u =
'988020'
v =
'020889'
u =
'987022'
v =
'220789'
u =
'996003'
v =
'300699'
u =
'995006'
v =
'600599'
u =
'994009'
v =
'900499'
u =
'993012'
v =
'210399'
u =
'992015'
v =
'510299'
u =
'991018'
v =
'810199'
u =
'990021'
v =
'120099'
u =
'989024'
v =
'420989'
u =
'988027'
v =
'720889'
u =
'987030'
v =
'030789'
u =
'986033'
v =
'330689'
u =
'995004'
v =
'400599'
u =
'994008'
v =
'800499'
u =
'993012'
v =
'210399'
u =
'992016'
v =
'610299'
u =
'991020'
v =
'020199'
u =
'990024'
v =
'420099'
u =
'989028'
v =
'820989'
u =
'988032'
v =
'230889'
u =
'987036'
v =
'630789'
u =
'986040'
v =
'040689'
u =
'985044'
v =
'440589'
u =
'994005'
v =
'500499'
u =
'993010'
v =
'010399'
u =
'992015'
v =
'510299'
u =
'991020'
v =
'020199'
u =
'990025'
v =
'520099'
u =
'989030'
v =
'030989'
u =
'988035'
v =
'530889'
u =
'987040'
v =
'040789'
u =
'986045'
v =
'540689'
u =
'985050'
v =
'050589'
u =
'984055'
v =
'550489'
u =
'993006'
v =
'600399'
u =
'992012'
v =
'210299'
u =
'991018'
v =
'810199'
u =
'990024'
v =
'420099'
u =
'989030'
v =
'030989'
u =
'988036'
v =
'630889'
u =
'987042'
v =
'240789'
u =
'986048'
v =
'840689'
u =
'985054'
v =
'450589'
u =
'984060'
v =
'060489'
u =
'983066'
v =
'660389'
u =
'992007'
v =
'700299'
u =
'991014'
v =
'410199'
u =
'990021'
v =
'120099'
u =
'989028'
v =
'820989'
u =
'988035'
v =
'530889'
u =
'987042'
v =
'240789'
u =
'986049'
v =
'940689'
u =
'985056'
v =
'650589'
u =
'984063'
v =
'360489'
u =
'983070'
v =
'070389'
u =
'982077'
v =
'770289'
u =
'991008'
v =
'800199'
u =
'990016'
v =
'610099'
u =
'989024'
v =
'420989'
u =
'988032'
v =
'230889'
u =
'987040'
v =
'040789'
u =
'986048'
v =
'840689'
u =
'985056'
v =
'650589'
u =
'984064'
v =
'460489'
u =
'983072'
v =
'270389'
u =
'982080'
v =
'080289'
u =
'981088'
v =
'880189'
u =
'990009'
v =
'900099'
u =
'989018'
v =
'810989'
u =
'988027'
v =
'720889'
u =
'987036'
v =
'630789'
u =
'986045'
v =
'540689'
u =
'985054'
v =
'450589'
u =
'984063'
v =
'360489'
u =
'983072'
v =
'270389'
u =
'982081'
v =
'180289'
u =
'981090'
v =
'090189'
u =
'980099'
v =
'990089'
u =
'989010'
v =
'010989'
u =
'988020'
v =
'020889'
u =
'987030'
v =
'030789'
u =
'986040'
v =
'040689'
u =
'985050'
v =
'050589'
u =
'984060'
v =
'060489'
u =
'983070'
v =
'070389'
u =
'982080'
v =
'080289'
u =
'981090'
v =
'090189'
u =
'980100'
v =
'001089'
u =
'979110'
v =
'011979'
u =
'988011'
v =
'110889'
u =
'987022'
v =
'220789'
u =
'986033'
v =
'330689'
u =
'985044'
v =
'440589'
u =
'984055'
v =
'550489'
u =
'983066'
v =
'660389'
u =
'982077'
v =
'770289'
u =
'981088'
v =
'880189'
u =
'980099'
v =
'990089'
u =
'979110'
v =
'011979'
u =
'978121'
v =
'121879'

2  Fail 
x = 9999;
y_correct = 99000099;
assert(isequal(euler004(x),y_correct))
u =
'99980001'
v =
'10008999'
u =
'99970002'
v =
'20007999'
u =
'99960003'
v =
'30006999'
u =
'99950004'
v =
'40005999'
u =
'99940005'
v =
'50004999'
u =
'99930006'
v =
'60003999'
u =
'99920007'
v =
'70002999'
u =
'99910008'
v =
'80001999'
u =
'99900009'
v =
'90000999'
u =
'99890010'
v =
'01009899'
u =
'99880011'
v =
'11008899'
u =
'99970002'
v =
'20007999'
u =
'99960004'
v =
'40006999'
u =
'99950006'
v =
'60005999'
u =
'99940008'
v =
'80004999'
u =
'99930010'
v =
'01003999'
u =
'99920012'
v =
'21002999'
u =
'99910014'
v =
'41001999'
u =
'99900016'
v =
'61000999'
u =
'99890018'
v =
'81009899'
u =
'99880020'
v =
'02008899'
u =
'99870022'
v =
'22007899'
u =
'99960003'
v =
'30006999'
u =
'99950006'
v =
'60005999'
u =
'99940009'
v =
'90004999'
u =
'99930012'
v =
'21003999'
u =
'99920015'
v =
'51002999'
u =
'99910018'
v =
'81001999'
u =
'99900021'
v =
'12000999'
u =
'99890024'
v =
'42009899'
u =
'99880027'
v =
'72008899'
u =
'99870030'
v =
'03007899'
u =
'99860033'
v =
'33006899'
u =
'99950004'
v =
'40005999'
u =
'99940008'
v =
'80004999'
u =
'99930012'
v =
'21003999'
u =
'99920016'
v =
'61002999'
u =
'99910020'
v =
'02001999'
u =
'99900024'
v =
'42000999'
u =
'99890028'
v =
'82009899'
u =
'99880032'
v =
'23008899'
u =
'99870036'
v =
'63007899'
u =
'99860040'
v =
'04006899'
u =
'99850044'
v =
'44005899'
u =
'99940005'
v =
'50004999'
u =
'99930010'
v =
'01003999'
u =
'99920015'
v =
'51002999'
u =
'99910020'
v =
'02001999'
u =
'99900025'
v =
'52000999'
u =
'99890030'
v =
'03009899'
u =
'99880035'
v =
'53008899'
u =
'99870040'
v =
'04007899'
u =
'99860045'
v =
'54006899'
u =
'99850050'
v =
'05005899'
u =
'99840055'
v =
'55004899'
u =
'99930006'
v =
'60003999'
u =
'99920012'
v =
'21002999'
u =
'99910018'
v =
'81001999'
u =
'99900024'
v =
'42000999'
u =
'99890030'
v =
'03009899'
u =
'99880036'
v =
'63008899'
u =
'99870042'
v =
'24007899'
u =
'99860048'
v =
'84006899'
u =
'99850054'
v =
'45005899'
u =
'99840060'
v =
'06004899'
u =
'99830066'
v =
'66003899'
u =
'99920007'
v =
'70002999'
u =
'99910014'
v =
'41001999'
u =
'99900021'
v =
'12000999'
u =
'99890028'
v =
'82009899'
u =
'99880035'
v =
'53008899'
u =
'99870042'
v =
'24007899'
u =
'99860049'
v =
'94006899'
u =
'99850056'
v =
'65005899'
u =
'99840063'
v =
'36004899'
u =
'99830070'
v =
'07003899'
u =
'99820077'
v =
'77002899'
u =
'99910008'
v =
'80001999'
u =
'99900016'
v =
'61000999'
u =
'99890024'
v =
'42009899'
u =
'99880032'
v =
'23008899'
u =
'99870040'
v =
'04007899'
u =
'99860048'
v =
'84006899'
u =
'99850056'
v =
'65005899'
u =
'99840064'
v =
'46004899'
u =
'99830072'
v =
'27003899'
u =
'99820080'
v =
'08002899'
u =
'99810088'
v =
'88001899'
u =
'99900009'
v =
'90000999'
u =
'99890018'
v =
'81009899'
u =
'99880027'
v =
'72008899'
u =
'99870036'
v =
'63007899'
u =
'99860045'
v =
'54006899'
u =
'99850054'
v =
'45005899'
u =
'99840063'
v =
'36004899'
u =
'99830072'
v =
'27003899'
u =
'99820081'
v =
'18002899'
u =
'99810090'
v =
'09001899'
u =
'99800099'
v =
'99000899'
u =
'99890010'
v =
'01009899'
u =
'99880020'
v =
'02008899'
u =
'99870030'
v =
'03007899'
u =
'99860040'
v =
'04006899'
u =
'99850050'
v =
'05005899'
u =
'99840060'
v =
'06004899'
u =
'99830070'
v =
'07003899'
u =
'99820080'
v =
'08002899'
u =
'99810090'
v =
'09001899'
u =
'99800100'
v =
'00100899'
u =
'99790110'
v =
'01109799'
u =
'99880011'
v =
'11008899'
u =
'99870022'
v =
'22007899'
u =
'99860033'
v =
'33006899'
u =
'99850044'
v =
'44005899'
u =
'99840055'
v =
'55004899'
u =
'99830066'
v =
'66003899'
u =
'99820077'
v =
'77002899'
u =
'99810088'
v =
'88001899'
u =
'99800099'
v =
'99000899'
u =
'99790110'
v =
'01109799'
u =
'99780121'
v =
'12108799'

3  Pass 
x = 100;
y_correct = 9009;
assert(isequal(euler004(x),y_correct))
u =
'10000'
v =
'00001'
u =
'9900'
v =
'0099'
u =
'9800'
v =
'0089'
u =
'9700'
v =
'0079'
u =
'9600'
v =
'0069'
u =
'9500'
v =
'0059'
u =
'9400'
v =
'0049'
u =
'9300'
v =
'0039'
u =
'9200'
v =
'0029'
u =
'9100'
v =
'0019'
u =
'9000'
v =
'0009'
u =
'9900'
v =
'0099'
u =
'9801'
v =
'1089'
u =
'9702'
v =
'2079'
u =
'9603'
v =
'3069'
u =
'9504'
v =
'4059'
u =
'9405'
v =
'5049'
u =
'9306'
v =
'6039'
u =
'9207'
v =
'7029'
u =
'9108'
v =
'8019'
u =
'9009'
v =
'9009'
u =
'9800'
v =
'0089'
u =
'9702'
v =
'2079'
u =
'9604'
v =
'4069'
u =
'9506'
v =
'6059'
u =
'9408'
v =
'8049'
u =
'9310'
v =
'0139'
u =
'9212'
v =
'2129'
u =
'9114'
v =
'4119'
u =
'9016'
v =
'6109'
u =
'8918'
v =
'8198'
u =
'8820'
v =
'0288'
u =
'9700'
v =
'0079'
u =
'9603'
v =
'3069'
u =
'9506'
v =
'6059'
u =
'9409'
v =
'9049'
u =
'9312'
v =
'2139'
u =
'9215'
v =
'5129'
u =
'9118'
v =
'8119'
u =
'9021'
v =
'1209'
u =
'8924'
v =
'4298'
u =
'8827'
v =
'7288'
u =
'8730'
v =
'0378'
u =
'9600'
v =
'0069'
u =
'9504'
v =
'4059'
u =
'9408'
v =
'8049'
u =
'9312'
v =
'2139'
u =
'9216'
v =
'6129'
u =
'9120'
v =
'0219'
u =
'9024'
v =
'4209'
u =
'8928'
v =
'8298'
u =
'8832'
v =
'2388'
u =
'8736'
v =
'6378'
u =
'8640'
v =
'0468'
u =
'9500'
v =
'0059'
u =
'9405'
v =
'5049'
u =
'9310'
v =
'0139'
u =
'9215'
v =
'5129'
u =
'9120'
v =
'0219'
u =
'9025'
v =
'5209'
u =
'8930'
v =
'0398'
u =
'8835'
v =
'5388'
u =
'8740'
v =
'0478'
u =
'8645'
v =
'5468'
u =
'8550'
v =
'0558'
u =
'9400'
v =
'0049'
u =
'9306'
v =
'6039'
u =
'9212'
v =
'2129'
u =
'9118'
v =
'8119'
u =
'9024'
v =
'4209'
u =
'8930'
v =
'0398'
u =
'8836'
v =
'6388'
u =
'8742'
v =
'2478'
u =
'8648'
v =
'8468'
u =
'8554'
v =
'4558'
u =
'8460'
v =
'0648'
u =
'9300'
v =
'0039'
u =
'9207'
v =
'7029'
u =
'9114'
v =
'4119'
u =
'9021'
v =
'1209'
u =
'8928'
v =
'8298'
u =
'8835'
v =
'5388'
u =
'8742'
v =
'2478'
u =
'8649'
v =
'9468'
u =
'8556'
v =
'6558'
u =
'8463'
v =
'3648'
u =
'8370'
v =
'0738'
u =
'9200'
v =
'0029'
u =
'9108'
v =
'8019'
u =
'9016'
v =
'6109'
u =
'8924'
v =
'4298'
u =
'8832'
v =
'2388'
u =
'8740'
v =
'0478'
u =
'8648'
v =
'8468'
u =
'8556'
v =
'6558'
u =
'8464'
v =
'4648'
u =
'8372'
v =
'2738'
u =
'8280'
v =
'0828'
u =
'9100'
v =
'0019'
u =
'9009'
v =
'9009'
u =
'9000'
v =
'0009'
u =
'8910'
v =
'0198'
u =
'8820'
v =
'0288'
u =
'8730'
v =
'0378'
u =
'8640'
v =
'0468'
u =
'8550'
v =
'0558'
u =
'8460'
v =
'0648'
u =
'8370'
v =
'0738'
u =
'8280'
v =
'0828'
u =
'8190'
v =
'0918'
u =
'8100'
v =
'0018'

4  Fail 
x = 2500;
y_correct = 6167616;
assert(isequal(euler004(x),y_correct))
u =
'6250000'
v =
'0000526'
u =
'6247500'
v =
'0057426'
u =
'6245000'
v =
'0005426'
u =
'6242500'
v =
'0052426'
u =
'6240000'
v =
'0000426'
u =
'6237500'
v =
'0057326'
u =
'6235000'
v =
'0005326'
u =
'6232500'
v =
'0052326'
u =
'6230000'
v =
'0000326'
u =
'6227500'
v =
'0057226'
u =
'6225000'
v =
'0005226'
u =
'6247500'
v =
'0057426'
u =
'6245001'
v =
'1005426'
u =
'6242502'
v =
'2052426'
u =
'6240003'
v =
'3000426'
u =
'6237504'
v =
'4057326'
u =
'6235005'
v =
'5005326'
u =
'6232506'
v =
'6052326'
u =
'6230007'
v =
'7000326'
u =
'6227508'
v =
'8057226'
u =
'6225009'
v =
'9005226'
u =
'6222510'
v =
'0152226'
u =
'6245000'
v =
'0005426'
u =
'6242502'
v =
'2052426'
u =
'6240004'
v =
'4000426'
u =
'6237506'
v =
'6057326'
u =
'6235008'
v =
'8005326'
u =
'6232510'
v =
'0152326'
u =
'6230012'
v =
'2100326'
u =
'6227514'
v =
'4157226'
u =
'6225016'
v =
'6105226'
u =
'6222518'
v =
'8152226'
u =
'6220020'
v =
'0200226'
u =
'6242500'
v =
'0052426'
u =
'6240003'
v =
'3000426'
u =
'6237506'
v =
'6057326'
u =
'6235009'
v =
'9005326'
u =
'6232512'
v =
'2152326'
u =
'6230015'
v =
'5100326'
u =
'6227518'
v =
'8157226'
u =
'6225021'
v =
'1205226'
u =
'6222524'
v =
'4252226'
u =
'6220027'
v =
'7200226'
u =
'6217530'
v =
'0357126'
u =
'6240000'
v =
'0000426'
u =
'6237504'
v =
'4057326'
u =
'6235008'
v =
'8005326'
u =
'6232512'
v =
'2152326'
u =
'6230016'
v =
'6100326'
u =
'6227520'
v =
'0257226'
u =
'6225024'
v =
'4205226'
u =
'6222528'
v =
'8252226'
u =
'6220032'
v =
'2300226'
u =
'6217536'
v =
'6357126'
u =
'6215040'
v =
'0405126'
u =
'6237500'
v =
'0057326'
u =
'6235005'
v =
'5005326'
u =
'6232510'
v =
'0152326'
u =
'6230015'
v =
'5100326'
u =
'6227520'
v =
'0257226'
u =
'6225025'
v =
'5205226'
u =
'6222530'
v =
'0352226'
u =
'6220035'
v =
'5300226'
u =
'6217540'
v =
'0457126'
u =
'6215045'
v =
'5405126'
u =
'6212550'
v =
'0552126'
u =
'6235000'
v =
'0005326'
u =
'6232506'
v =
'6052326'
u =
'6230012'
v =
'2100326'
u =
'6227518'
v =
'8157226'
u =
'6225024'
v =
'4205226'
u =
'6222530'
v =
'0352226'
u =
'6220036'
v =
'6300226'
u =
'6217542'
v =
'2457126'
u =
'6215048'
v =
'8405126'
u =
'6212554'
v =
'4552126'
u =
'6210060'
v =
'0600126'
u =
'6232500'
v =
'0052326'
u =
'6230007'
v =
'7000326'
u =
'6227514'
v =
'4157226'
u =
'6225021'
v =
'1205226'
u =
'6222528'
v =
'8252226'
u =
'6220035'
v =
'5300226'
u =
'6217542'
v =
'2457126'
u =
'6215049'
v =
'9405126'
u =
'6212556'
v =
'6552126'
u =
'6210063'
v =
'3600126'
u =
'6207570'
v =
'0757026'
u =
'6230000'
v =
'0000326'
u =
'6227508'
v =
'8057226'
u =
'6225016'
v =
'6105226'
u =
'6222524'
v =
'4252226'
u =
'6220032'
v =
'2300226'
u =
'6217540'
v =
'0457126'
u =
'6215048'
v =
'8405126'
u =
'6212556'
v =
'6552126'
u =
'6210064'
v =
'4600126'
u =
'6207572'
v =
'2757026'
u =
'6205080'
v =
'0805026'
u =
'6227500'
v =
'0057226'
u =
'6225009'
v =
'9005226'
u =
'6222518'
v =
'8152226'
u =
'6220027'
v =
'7200226'
u =
'6217536'
v =
'6357126'
u =
'6215045'
v =
'5405126'
u =
'6212554'
v =
'4552126'
u =
'6210063'
v =
'3600126'
u =
'6207572'
v =
'2757026'
u =
'6205081'
v =
'1805026'
u =
'6202590'
v =
'0952026'
u =
'6225000'
v =
'0005226'
u =
'6222510'
v =
'0152226'
u =
'6220020'
v =
'0200226'
u =
'6217530'
v =
'0357126'
u =
'6215040'
v =
'0405126'
u =
'6212550'
v =
'0552126'
u =
'6210060'
v =
'0600126'
u =
'6207570'
v =
'0757026'
u =
'6205080'
v =
'0805026'
u =
'6202590'
v =
'0952026'
u =
'6200100'
v =
'0010026'

Maximum running product for a string of numbers
1057 Solvers
262 Solvers
926 Solvers
Make a vector of prime numbers
185 Solvers
07  Common functions and indexing 6
341 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!