Talk:Munchausen numbers: Difference between revisions

no edit summary
No edit summary
Line 7:
:::: See the current ALGOL 68 sample which holds the 4 digits as separate numbers and indexes a table of powers - the non-standard 0^0 allows indexing the table of powers without having to worry whether the digit is a leading zero or not. The sample does this to avoids any multiplication, division or modulo operations. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 19:51, 24 September 2016 (UTC)
::::: Ok, so it's a hack that lets the programmer use a fixed width array of digits without having to bother with the relevant array length. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 20:22, 24 September 2016 (UTC)
:::::: Or it's a feature of the definition that can be exploited :) --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 09:40, 25 September 2016 (UTC)
3,048

edits