1 2 3
f =: [:+/[:(^&5)10&#.^:_1 n =. i.1e7 NB. Can't be higher than this problem30 =: +/2}.n#~n=f"0 n