rookie:
There were some interesting solutions for squares like: https://groups.google.com/forum/#!msg/comp.lang.ruby/lf4Zd9fvuYY/tjT2q65mcFAJ
The Ruby code by Luke Blanshard converted to D: http://codepad.org/gtWDdRoJRuby is very flexible, and its multi-precision integers help avoid some bugs, but I often prefer the coding precision D offers.
Bye, bearophile
