summaryrefslogtreecommitdiff
path: root/problem36.ijs
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2021-08-26 14:30:53 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2021-08-26 14:30:53 +0200
commit75e79bf2fcbf9c0b3e09bc5d8bf4fde307e42e7e (patch)
treec547f64e146a93e29407f3e040d795e2fce49071 /problem36.ijs
parent8938c4dd4b2d2d145cf1df5f20e419946a8ae65b (diff)
problem 36
Diffstat (limited to 'problem36.ijs')
-rw-r--r--problem36.ijs6
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