I was thinking about doing a problem for heteroglot ā my quest to solve every Project Euler problem in a different programming language. (Theyāre adding new problems much more quickly than Iām solving them, so so far Iāve made negative progress.) Then I discovered Iād already done two, but never wrote about either of them. Oops! Hereās a twofer,Ā then.
This post necessarily gives away the answers, so donāt read this if youād like to solve the problems yourself.