[-] hummas@lemmy.blahaj.zone 1 points 7 months ago* (last edited 7 months ago)

That was my initial thought, but you can do add or sub by 2 (6 / 3) to get a non-multiple of 3. I had to double check and see that there were in fact values of i.e. x.5 within I think a difference of 64, can’t remember the exact values or their expressions.

[-] hummas@lemmy.blahaj.zone 2 points 7 months ago* (last edited 7 months ago)

Factorials or something more than basic arithmetic (+exponents) is needed as I went ahead and programmatically checked every expression without parenthesis and the closest would always be 195. Interestingly, all values within a difference of 10 were multiples of 3.

A lost cause indeed.

[-] hummas@lemmy.blahaj.zone 21 points 7 months ago

I’m now committed to getting this to work, but I’m not quite there.

(6^3) - 6 * 3 - 3 = 195 Beyond this, I’m quite lost on how this can be done with simple arithmetic.

[-] hummas@lemmy.blahaj.zone 1 points 8 months ago

Kind of a knee-jerk reaction to it on my part, plus I’ve got personal bias against exceptions (errors as values my beloved). The worst thing is that thinking about this code has managed to take time I could’ve used being non-productive with my own projects smh.

[-] hummas@lemmy.blahaj.zone 18 points 8 months ago

I’m even more disturbed by the try catch that will never catch anyway. Most disturbing is the absolute heresy that is the throw within the catch. …is vibe even defined here??? I think I need to reconsider my major.

hummas

joined 1 year ago