Steady squares: Difference between revisions

Content added Content deleted
(Added Lua)
Line 1,310: Line 1,310:


=={{header|Lua}}==
=={{header|Lua}}==
{{Trans|ALGOL W}}
Uses the fact the final digit can only be 1, 5 or 6 (see the talk page).
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
do --[[ find steady squares - numbers whose square ends in the number
do --[[ find steady squares - numbers whose square ends in the number