Damus
Twig profile picture
Twig
@Twig
If you rearrange the digits of a four-digit number into ascending order, then rearrange the original number into descending order and subtract one from the other, the numbers begin a strange pilgrimage toward 6174.
1
Zergling_man · 9w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqc660ezre0ht785j7cstck6fl03jg3n6slzpuc8tzxjyzyudfkp2sxpxyve What the fuck def sort_sub(num): a=int(''.join(sorted(str(num)))) b=int(''.join(sorted(str(num),reverse=True))) return b-a def mandel(num): prev=0 iters=0 while num!=prev: prev...