Jump to content

Esthetic numbers: Difference between revisions

m
m (J: more efficient implementation of stretch goal.)
Line 3,048:
(Result e not displayed here -- it's the same as <tt>next^:8]1</tt> below.)
 
But, it's much more efficient to generatinggenerate sequences of digits from a base digit, rather than generating sequential integers discarding those which are not suitable:
 
<lang J>graph=: </./|:/:~~.10 10#:(#~ isesthetic)100+i.900
6,962

edits

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