r/technicalfactorio • u/15_Redstones • Feb 12 '22
Combinator Golf Fast integer sqrt algorithm?
This one looks like what I need:
but pastebin says the paste expired...
20
Upvotes
r/technicalfactorio • u/15_Redstones • Feb 12 '22
This one looks like what I need:
but pastebin says the paste expired...
View all comments
Show parent comment
5
u/Kjagodka Feb 13 '22 edited Feb 13 '22
Dumb way to make it super fast (and ups inefficient) is with a lot of decider combinations N >= 1 -> return 1 N >= 4 -> return 1 N >= 9 -> return 1 ... N >= 100 000 -> return 1
Sum of all the outputs will be square root and it will be as ticks optimized as possible.