Wednesday, December 22, 2010

Ontario Driver License Id Template

Project Euler Problem 14 Project Euler - Problem interesting !?!?!

So far, spend the time and moments with the coding to solve the issues raised by the Project Euler has been a task of immense satisfaction especially as outstanding challenges posed by new concepts of concern and knowledge, but some of these issues have some seem tasteless when asked to get out of step, it is even more offensive to be problematic as meaningless, example is the problem for its development 13 that more time is taken squalid enter 100 numbers of 50 digits each, which means add them all to know what the first ten digits of this result. I personally prefer

problems involving the generation script's to find results with special features such as the problem 12 in the calling discover the first triangular number is over five hundred divisors.

But anyway, the problems have already been written and there is no way I leave I generated script to solve the problem 12, this script should be improved to be more precise execution but as this achieves the goal. Find

% triangular numbers, including triangular numbers (in
% this case) has more than 501 divisors, to improve when you find the first
% the condition stops.
d = (1:1000000) 1:1000000

for n = T = n * (n +1) / 2;
p = find (rem (T, d) == 0);
if length (d (p))> = 501
disp (T);
; disp (length (d (p)));

end end


So far they are determined 12 of the 13 problems where I worked because the problem 11 asked to teach the computer to solve puzzles with 20x20 matrix, solve that problem will be sublime jejeje.

esDebian

0 comments:

Post a Comment