Re:Collection Of Puzzles For Programmers
by darkestkhan on Sunday August 19, 2012 @03:57AM
(#4403522)
The thing is that people start using those libraries w/o thinking before - and theirs' solutions end up doing much more work than is needed
One could imagine the question was actually "sum BusyBeaver(n) for n divisible by 3 and 5 between 1 and 100", i.e. no closed form. In Python:
(And yes, if one was being really pedantic, one could replace the condition with x % 15 == 0.)