Eden utilise witches.town. Vous pouvez læ suivre et interagir si vous possédez un compte quelque part dans le "fediverse".

my dad just text me. We don't really get on much, but when we do it's over maths.

Tonight is "I saw a math question on TV that asked for a 5 digit number whose factors sum to a prime number in the fibonacci sequence. "

So tonight I'm doing haskell. Functional languages keep families together, kids.

Eden @edensaesthetic

TURNS OUT THAT"S REALLY COMPUTATIONALLY EXPENSIVE WHEN YOU'RE BAD AT HASKELL

@edensaesthetic I futzed my way through to the answer in Python, much more slowly than I bet I could if I were adequately able to brain today.

@bstacey Shit, did you actually get to the answer? This is actually taking my processor forever, maybe I did actually write something wrong.

@edensaesthetic I got an answer. The time-intensive part was computing the sums of the factors, since I foolishly used a data structure with more memory and lookup-time overhead than I needed.

spoilers Afficher plus

spoilers Afficher plus

spoilers Afficher plus

Sometimes I wonder why I'm paid to use a computer for work, clearly I am not the right person to be trusted