
-----------------------------------
DtY
Sat Oct 24, 2009 8:44 am

Project Euler Problem 12
-----------------------------------
I got to what I thought was the right answer, but it's telling me I'm wrong.

[answer removed by request]

The answer it gives me is x with y factors, but euler tells me that's wrong.
I don't know exactly what code I can post for this, but if anyone has any ideas what I might be doing wrong it would be appreciated. (Or what code I can post that might be relevant).

Thanks

[edit] Sorry, meant to add link: http://projecteuler.net/index.php?section=problems&id=12

-----------------------------------
zylum
Sun Oct 25, 2009 12:10 pm

RE:Project Euler Problem 12
-----------------------------------
You are to give the value of the triangle number not which one it is. ie 28 not 5. (hint: you have the correct answer)

-----------------------------------
A.J
Sun Oct 25, 2009 6:11 pm

RE:Project Euler Problem 12
-----------------------------------
Also, notice that the nth triangle number is merely the sum of the first n natural numbers. There's a closed form for that.

You actually do have the right answer.

-----------------------------------
DtY
Sun Oct 25, 2009 6:42 pm

RE:Project Euler Problem 12
-----------------------------------
Thanks both :D
I guess I should get the answer taken out of the post then

[edit] Note to moderators: I just reported zylum's post because I cannot report my own, and was expecting to be able to enter a report message. Could you edit my original post so that it doesn't have the answer?
