ShareMyScreen/ProjectEuler/0009

From J Wiki
Jump to navigation Jump to search

Considering natural numbers of the form a^b, where a, b < 100, what is the maximal sum of digits in resultant number?


NB.   an off-by-one error somewhere
NB.   │
NB.   │   greatest
NB.   │   │    ravel
NB.   │   │    │  sum the digits of each row
NB.   │   │    │  │    atomically, turn each into a string, ravel items
NB.   │   │    │  │    │         ravel items
NB.   │   │    │  │    │         │  make precise since big numbers
NB.   │   │    │  │    │         │  │   themself to the power of themself
NB.   │   │    │  │    │         │  │   │      1 through 100
NB.   │_  │__  │  │___ │_________│_ │   │____  │_________
   ([:>:[:>./[:,[:+/"1@(,.&.":)"0,.@x:@((^/])@:>:@i.))1e2