Jump to content

Esthetic numbers: Difference between revisions

m
m (J: eliminate useless rank specification)
Line 3,050:
It's much more efficient to generate sequences of digits from a base digit, rather than generating sequential integers and discarding those which are not suitable.
 
For example, we can generate a directed graph, from one digit to the one or two viable adjacent digits, and then build up a result based on all viable values of the rightmost digit of the current list of partially built candidates:
 
<lang J>graph=: </./|:0 1,10 10#:(#~ isesthetic)10+i.90
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.