Wrong number of args (0) passed to: PersistentVector on loop/recur function
Let me move the whitespace in your code so it’s obvious to you what is wrong: (defn factors [x] ((loop [n x i 2 acc []] (if (prime? n) (conj acc n) (if (zero? (mod n i)) (recur (/ n i) 2 (conj acc i)) (recur n (inc i) acc)))))) You see that weird (( … Read more