Project Euler Problem 9
https://clojure-diary.gitlab.io/2024/11/13/project-euler-problem-9.html
Code ;; euler_9.clj (def possibilities (for [a (range 1 1001) b (range (+ a 1) 1001)] [a b])) (defn satisfies-condition [possibility] (let [a (first possibility) b (second possibility) c (- 1000 (+ a b))] (== (+ (* a…
You must log in or register to comment.