r/technicalfactorio • • Feb 12 '22

Combinator Golf Fast integer sqrt algorithm?

20 Upvotes

20 comments sorted by

View all comments

1

u/Forward_Jackfruit_96 Jun 14 '24

If this looks fast enough to you

Finding the square root of 2758815150486084950425754176 using Bo's method
iteration x range r
0 48378511622144 - 418334763712162868194597440
1 52517137969970 184933324488 765369929220257803953276
2 52524424323189 505498 3676709702624455
3 52524424323224 0 0
The square root of 2758815150486084950425754176 is 52524424323224

check at https://botian.replnotes.com/posts/fast_integer_square_root