Re:Can LLMs write better code if you keep asking them to "wr...
by gadders on Friday January 03, 2025 @09:52AM
(#42586107)
I had a scan of the code examples, but one other idea that occurred to me is that you could immediately drop any numbers below 999 (probably slightly higher, but that would need calculation rather than being intuitive).
[ Parent
| on HN ]
Re:Can LLMs write better code if you keep asking them to "wr...
by Someone on Friday January 03, 2025 @01:14PM
(#42588045)
> probably slightly higher, but that would need calculation rather than being intuitive
I think it’s easy to figure out that 3999 is the smallest positive integer whose decimal digits add up to 30 (can’t get there with 3 digits, and for 4, you want the first digit to be as small as possible. You get that by making the other 3 as high as possible)