←back to thread

Project Euler

(projecteuler.net)
386 points swatson741 | 3 comments | | HN request time: 0.601s | source
Show context
peterkagey ◴[] No.45906985[source]
I wrote Problem 619 (https://projecteuler.net/problem=619) which was published on 2018-01-27 and solved by 474.

The problem was based on 2013 Putnam Exam problem A2 (https://kskedlaya.org/putnam-archive/2013.pdf) which I took at the end of undergrad.

I got an email six years later (in November 2024) telling me they accepted the problem:

Greetings!

Please excuse the email. It's quite possible that you are no longer active at Project Euler, but we are currently trying to retrospectively acknowledge contributors of problems.

You were identified as being involved with Square subsets [619 m] in Sep-17.

If you would like to be added as a verified contributor, please reply to this email and provide the username you currently use at projecteuler.net. Please note that contributor usernames will not appear publicly, rather they will be used internally to unlock new contributor awards we are introducing.

Regards,

Project Euler Team

replies(2): >>45907875 #>>45910303 #
webo ◴[] No.45907875[source]
I was curious if LLMs are good for this problem. ChatGPT-5.1-Thinking one-shotted a correct Python script without any library use (https://pastecode.io/s/jg6ggxpm).

Claude Opus failed to solve after trying for a while.

replies(2): >>45908120 #>>45908693 #
mvdtnz ◴[] No.45908693[source]
First of all, don't do this. No one cares. Secondly obviously every Euler solution is going to appear in the training data many times over. It's no surprise at all that an LLM can regurgitate data that was given to it.
replies(1): >>45908723 #
1. kragen ◴[] No.45908723[source]
I thought it was interesting, and I wouldn't be surprised if Euler solutions weren't in the training data, especially for the later problems like this one.
replies(1): >>45910480 #
2. kami23 ◴[] No.45910480[source]
I appreciate you trying it! So at least I care.

I used to do these in college to procrastinate my homework. I always had the most difficulty with the problems that required data structures I wasn't exposed to previously and ended up making really complicated solutions that were inefficient as hell, but fun nonetheless.

I might give them a try with golang now that it's my preferred language. I used to do them in python as that was our intro language.

replies(1): >>45910620 #
3. kragen ◴[] No.45910620[source]
Perhaps you meant to reply to webo? I'm not sure what you think I might have been trying.