fork download
  1. (defmacro q[& a] `(with-precision ~@a))
  2. (defn h[n](nth(str(reduce +(map #(let[p(+(* n 2)1)a(q p(/ 1M(.pow 16M %)))b(q p(/ 4M(+(* 8 %)1)))c(q p(/ 2M(+(* 8 %)4)))d(q p(/ 1M(+(* 8 %)5)))e(q p(/ 1M(+(* 8 %)6)))](* a(-(-(- b c)d)e)))(range(+ n 9)))))(+ n 2)))
  3.  
  4. (println (map h [0 1 2 3 4 5 10 100]))
  5.  
  6.  
Success #stdin #stdout 2.16s 335488KB
stdin
Standard input is empty
stdout
(1 4 1 5 9 2 8 8)