Project Euler using Matlab / Octave