Maths Challenges

scuber123

Member
Joined
Apr 4, 2008
Messages
11
I tried the search function, but couldn't find anything relevant. I remember Johannes talking about some maths ('math' to some people) challenges that he takes part in. I would be grateful if he, or somebody else, could provide a link, because I would like to take part in some of them.
 
If you want a hint, here's how I solved that one. Incidentally, I only know how to program on the Texas Instruments calculators, so I solved that one using a TI-89 haha. I pretty much used a brute force approach, but you can simplify it by only testing factors less than or equal to the square root of a number, and also there's no sense in testing any even numbered factors except for 2.

I did a brute force search, modified by only diving each number by 2, then by every odd integer up to the square root of the number.

I'm sure you could estimate using the asymptotic function to the prime numbers as to about what range is the 10001st prime contained in, but I was feeling lazy and just did brute force.

And yes don't cheat lol, that takes all the fun out of it.

Chris
 
I think it might be nice if people could post their solutions to various problems.
That's what the Project Euler forum is for. You can only access threads for the problems you've solved, so posting there doesn't risk spoiling the fun for others.

My favourite problems so far are #105, #106, #153, #161, #182, #184, #189, #193, #194, and #198. Sadly there will soon be a break of 2 months with no new ones.

Does anyone know other good sites with programming problems that allow functional languages?

http://projecteuler.net/index.php?section=problems said:
If you can't solve it, then you can't solve it!
 
the majority of the problems on this site are related to computer/programming-knowledge, right?! :/
 
Does anyone know other good sites with programming problems that allow functional languages?
You mean not USACO :p.
Yeah. I just finished the first chapter (took nearly a week), but C is so frustrating I don't think I'll solve many more. Just reading the input file often takes many lines. But I guess I just have to get used to it if I want to participate in contests, C/C++/Java/etc. are often the only choices. :-(

the majority of the problems on this site are related to computer/programming-knowledge, right?! :/
Some knowledge is needed, but not much. Many problems can be solved with very little or no programming, it's more about thinking logically. Simply knowing how to use spreadsheets can help a lot.

#200 was fun. :-)
 
Back
Top