This problem was mentioned in passing in a reading and it piqued my curiosity.
I'm not sure where to start. Any pointers? (perhaps square root was meant?)
This problem was mentioned in passing in a reading and it piqued my curiosity.
I'm not sure where to start. Any pointers? (perhaps square root was meant?)
An algorithm to do this for integers would be (in pseudo-code):