News for hackers. Stuff that matters.
Re:Show HN: Allocate poker chips optimally with mixed-intege... by ChadNauseam on Tuesday June 04, 2024 @12:15PM (#40576071)
Since every positive even integer is the sum of two primes (at least, within the range of weights you're likely to be lifting), maybe [5, ...the list of primes times 5]?

So if the list of primes is 2, 3, 5, 7, 11, etc, you could have weights of 5, 25, 35, 55, 75, 11*5, etc. for 5, 10, 15, 25, 35, 55, etc.

Re:Show HN: Allocate poker chips optimally with mixed-intege... by gpm on Tuesday June 04, 2024 @12:41PM (#40576405)
> So if the list of primes is 2, 3, 5, 7, 11, etc, you could have weights of 5, 2*5, 3*5, 5*5, 7*5, 11*5, etc. for 5, 10, 15, 25, 35, 55, etc.

Fixed the formatting for you. You need to put a \ before * symbols to have them reliably render in HN

Re:Show HN: Allocate poker chips optimally with mixed-intege... by latexr on Tuesday June 04, 2024 @06:12PM (#40579489)
> You need to put a \ before * symbols to have them reliably render in HN

Alternatively, write two sequential *, like so: **