The Easiest Way to Save and Share Code Snippets on the web

Euler5

matlab

posted: Apr, 23rd 2012 | jump to bottom

clear all
tic
i.html">i = 2520;
while (1)
 
    if mod(i.html">i,11)==0
        if mod(i.html">i,12)==0
            if mod(i.html">i,13)==0
                if mod(i.html">i,14)==0
                    if mod(i.html">i,15)==0
                        if mod(i.html">i,16)==0
                            if mod(i.html">i,17)==0
                                if mod(i.html">i,18)==0
                                    if mod(i.html">i,19)==0
                                        if mod(i.html">i,20)==0
                                            break
                                        end
                                    end
                                end
                            end
                        end
                    end
                end
            end
        end
    end
    i.html">i = i.html">i + 2520;
end
toc;
 
78 views