this post was submitted on 13 Nov 2024
1 points (100.0% liked)

Clojure programming language discussion

454 readers
2 users here now

Clojure is a Lisp that targets JVM and JS runtimes

Finding information about Clojure

API Reference

Clojure Guides

Practice Problems

Interactive Problems

Clojure Videos

The Clojure Community

Clojure Books

Tools & Libraries

Clojure Editors

Web Platforms

founded 4 years ago
MODERATORS
 

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...

#clojure #clj #cljs [email protected] @clojure

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here