Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 2 days agoInfallible Codelemmy.mlexternal-linkmessage-square159fedilinkarrow-up1480arrow-down128
arrow-up1452arrow-down1external-linkInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 2 days agomessage-square159fedilink
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up12arrow-down1·2 days agoThis code would run a lot faster as a hash table look up.
minus-squarePieMePlenty@lemmy.worldlinkfedilinkarrow-up6·1 day 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-up5·1 day 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.