diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-26 14:30:53 +0200 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-26 14:30:53 +0200 |
commit | 75e79bf2fcbf9c0b3e09bc5d8bf4fde307e42e7e (patch) | |
tree | c547f64e146a93e29407f3e040d795e2fce49071 | |
parent | 8938c4dd4b2d2d145cf1df5f20e419946a8ae65b (diff) |
problem 36
-rw-r--r-- | problem36.ijs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/problem36.ijs b/problem36.ijs new file mode 100644 index 0000000..628cf70 --- /dev/null +++ b/problem36.ijs @@ -0,0 +1,6 @@ +bits =: 2&#.^:_1 +decimals =: 10&#.^:_1 +palindrome =: |.-:] +palins =: [: palindrome each bits;decimals +both =: [: *./ ;&palins +problem36 =: +/I.both"0 i.1e6 |