News for hackers. Stuff that matters.
Re:Project Euler 001 the Hard Way by its_dario on Sunday February 02, 2020 @07:44AM (#22216685)
> Isn't this like... really, really basic?

Yeah, it's reasonably basic. For the problem as stated where there are only 1000 numbers to iterate over, though, I wouldn't have bothered wasting time thinking about it when the naive implementation is fast enough that it doesn't matter.

Why start with something more complicated (assuming you're going to program it rather than just solving it outright on paper) when the simple way works?

There are no comments on this comment yet.