diff options
-rw-r--r-- | problem92.ijs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/problem92.ijs b/problem92.ijs new file mode 100644 index 0000000..faa887e --- /dev/null +++ b/problem92.ijs @@ -0,0 +1,5 @@ +digits =: 10&#.^:_1 +next =: +/@:*:@:digits +chain =: next`]@.(=&89) +endNum =: (chain^:_)"0 +problem92 =: +/89=endNum i.1e7 NB. Takes about 60 seconds on my machine |