▲ 444 ▼ Infallible Code (lemmy.ml) submitted 1 year ago by sirico@feddit.uk to c/programmerhumor@lemmy.ml 134 comments fedilink hide all child comments
[–] sik0fewl@lemmy.ca 10 points 1 year ago (2 children) This code would run a lot faster as a hash table look up. permalink fedilink source hideshow 4 child comments replies: [–] PieMePlenty@lemmy.world 6 points 1 year ago 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. permalink fedilink source parent [–] Valmond@lemmy.world 5 points 1 year ago In a Juliana tree, or a dictionary tree if you want. For speed. permalink fedilink source parent
[–] PieMePlenty@lemmy.world 6 points 1 year ago 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. permalink fedilink source parent
[–] Valmond@lemmy.world 5 points 1 year ago In a Juliana tree, or a dictionary tree if you want. For speed. permalink fedilink source parent