summaryrefslogtreecommitdiff
path: root/problem36.ijs
blob: 628cf7016d10e17c25f57e631ceaebf6fbb29eb2 (plain) (blame)
1
2
3
4
5
6
bits =: 2&#.^:_1
decimals =: 10&#.^:_1
palindrome =: |.-:]
palins =: [: palindrome each bits;decimals
both =: [: *./ ;&palins
problem36 =: +/I.both"0 i.1e6