Colorful numbers: Difference between revisions

m
(Added AppleScript.)
Line 147:
-- (to show isColorful() working in all cases).
if ((n mod 10 > 1) or (magnitude < 2)) and (isColorful(n)) then
if (n < 100) then set end of colorfuls to text -13 thru -1 of (" " & n)
set counter to counter + 1
if (n = largestReverse) then
Line 187:
{{output}}
<syntaxhighlight lang="applescript">"The colorful numbers below 100:
0 1 2 3 4 5 6 7 8 9 23
24 25 26 27 28 29 32 34 35 36 37
38 39 42 43 45 46 47 48 49 52 53
557

edits