Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,26 @@
on isDisarium(n)
set temp to n
set digitCount to 1
repeat while (temp > 9)
set temp to temp div 10
set digitCount to digitCount + 1
end repeat
set temp to n
set sum to 0
repeat with position from digitCount to 2 by -1
set sum to sum + (temp mod 10) ^ position
set temp to temp div 10
end repeat
return (sum + temp = n)
end isDisarium
local Disaria, n
set Disaria to {}
set n to 0
repeat until ((count Disaria) = 19)
if (isDisarium(n)) then set end of Disaria to n
set n to n + 1
end repeat
return Disaria

View file

@ -0,0 +1 @@
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 89, 135, 175, 518, 598, 1306, 1676, 2427, 2646798}