From f7c311839b9aacf8367c3056c007988ca5154889 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 2 Oct 2021 00:42:16 +0200 Subject: Problem 92 --- problem92.ijs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 problem92.ijs 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 -- cgit v1.2.3