Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 day agoInfallible Codeimagemessage-square151fedilinkarrow-up1451arrow-down125
arrow-up1426arrow-down1imageInfallible CodeDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 day agomessage-square151fedilink
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up8arrow-down1·13 hours agoThis code would run a lot faster as a hash table look up.
minus-squarePieMePlenty@lemmy.worldlinkfedilinkarrow-up4·8 hours agoI agree. Just need a table of even numbers. Oh and a table of odd numbers, of course, else you cant return the false… duh.
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up3·8 hours agoIn a Juliana tree, or a dictionary tree if you want. For speed.
This code would run a lot faster as a hash table look up.
I agree. Just need a table of even numbers. Oh and a table of odd numbers, of course, else you cant return the false… duh.
In a Juliana tree, or a dictionary tree if you want. For speed.