Browse by Tags

All Tags » Euler problems (RSS)
Sorry, but there are no more tags available to filter with.
What is the first triangle number to have more than 500 divisors? Ok, this one kicked me in the pants, and it kicked my little Mac in the pants as well. I had to relearn how to get divisors quickly and efficiently, which meant seeking the wisdom of others...
with no comments
Filed under:
In this problem we are searching for the largest product of four consecutive numbers in any row, column, or diagonal of a given 20 by 20 matrix. This is a nice sort of problem to do in Matlab because it is so well-suited for working with matrices. I wrote...
This problem asks us to find the greatest product of five consecutive digits in a given 1000 digit number. First the 1000 digit number has to be stored as a string. I wanted to make sure that each digit of the number was converted from a string to an...
with no comments
Filed under:
Is it cheating to use the Matlab built in isprime function? It saves me from going to Google to find a prime number algorithm. Here's my code: function euler7 ii = 0; jj = 2; while 1 if isprime(jj) ii=ii+1; if ii == 10001 break; end end jj=jj+1; end...
with no comments
Filed under:
I thought I'd join the Euler problem bandwagon. In true mechanical engineering fashion, I'm using Matlab to solve them. Actually, just for an added twist, I'm using Octave , an open source math interpreter that is mostly compatible with Matlab...
with no comments
Filed under: