Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 3 days agoInfallible Codelemmy.mlimagemessage-square142linkfedilinkarrow-up1458arrow-down127
arrow-up1431arrow-down1imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square142linkfedilink
minus-squaresik0fewllinkfedilinkarrow-up11arrow-down1·2 days agoThis code would run a lot faster as a hash table look up.
minus-squarePieMePlenty@lemmy.worldlinkfedilinkarrow-up6·2 days 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·2 days 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.