Skip to content
View leandrowilliam's full-sized avatar
🧩
Focusing
🧩
Focusing
  • Boca Raton, FL
  • 20:52 (UTC -04:00)
Block or Report

Block or report leandrowilliam

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
leandrowilliam/README.md

Hi there 👋

Not the most efficient but is elegant 😎

(defn sieve [n]
  (loop [s (range 2 n)
         primes []]
    (if-let [c (first s)]
      (recur (remove #(zero? (mod % c)) s) (conj primes c))
      primes)))

Pinned Loading

  1. microsoft/vscode microsoft/vscode Public

    Visual Studio Code

    TypeScript 161k 28.1k