From 67be0615db32ae50744992dfc3a05ef336b52a57 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Fri, 27 Aug 2021 19:29:29 +0200 Subject: Problem 35 --- problem35.ijs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 problem35.ijs diff --git a/problem35.ijs b/problem35.ijs new file mode 100644 index 0000000..ddcd118 --- /dev/null +++ b/problem35.ijs @@ -0,0 +1,5 @@ +digits =: 10&#.^:_1 +rotations =: monad : '(|.&y)"0 i.#y' +isPrime =: 1&p: +circularPrime =: monad : '*./isPrime rotations&.digits y' +problem35 =: +/circularPrime"0 i.1e6 -- cgit v1.2.3