23 reputation
2
bio website
location
age 31
visits member for 1 year, 5 months
seen Aug 2 '13 at 20:09

I'm a Mathematica beginner who purchased Version 8 a good year ago but haven't had too much time / reasons to use it regularly (or at all at times).

There's a few things on the horizon that I'd really like to use it on, and I also found the fantastic site "Project Euler" which is filled with exercises suitable for learning Mathematica.

This site seems to be fantastic.


Nov
9
awarded  Scholar
Nov
9
comment How to make brute force coding more efficient?
I want to thank you all for such great comments/answers to what might have been a somewhat fuzzy question to begin with. I have a lot to learn on the subject, and you have been much helpful!
Nov
9
accepted How to make brute force coding more efficient?
Nov
9
comment How to make brute force coding more efficient?
@SimonWoods, about bailing out early: I actually tried something like If[Length[TakeWhile[Range[], Mod[i, #&]...]] == 20].. But it turned out to be even slower than the presented method. Thanks for bringing up the Listable attribute. I will keep this mind in the future before using Map
Nov
9
comment How to make brute force coding more efficient?
@J.M. Thanks for the reply. Clearly using C would make the process faster. After compiling the original example it got a bit over 20 times faster and almost acceptable. I now know a lot more about what can/should be done in Mathematica.
Nov
9
comment How to make brute force coding more efficient?
Thanks for the suggestion. The style in this answer is exactly what I was trying to avoid, though (might as well use C). However, I tried compiling the original solution and it became over 20 times faster. That's a good sign.
Nov
9
comment How to make brute force coding more efficient?
@J.M, as Oleksandr R. pointed out, I was asking about brute-force approach in Mathematica for a reason (should Mathematica be used in these cases or am I doing something very wrong?).
Nov
9
awarded  Student
Nov
9
asked How to make brute force coding more efficient?