diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-27 19:29:29 +0200 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2021-08-27 19:29:29 +0200 |
commit | 67be0615db32ae50744992dfc3a05ef336b52a57 (patch) | |
tree | c32ed802699b4ef23b3cbf8d0907042c895c80af | |
parent | 6fcb28bbf34fc81f40592eaa71cf2b8afbfd126d (diff) |
Problem 35
-rw-r--r-- | problem35.ijs | 5 |
1 files changed, 5 insertions, 0 deletions
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 |