We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b251f commit 7a1d172Copy full SHA for 7a1d172
1 file changed
for-clojure/problem-106/src/problem_106/core.clj
@@ -42,5 +42,25 @@
42
43
(println (map #(apply __ %) [[1 1] [3 12] [12 3] [5 9] [9 2] [9 12]]))
44
45
+(+ 2 3)
46
+(take 5 [1 2 3 4 5 6])
47
+(concat [2 3] [5 7])
48
+(take 5 (range 5 java.lang.Integer/MAX_VALUE 2))
49
+(for [cand [2 3 4]] cand)
50
+(every? even? [4 2])
51
+
52
+#(take % (let [primes
53
+ (concat
54
+ [2 3]
55
+ (for [cand (range 5 java.lang.Integer/MAX_VALUE 2)
56
+ :when (every? (fn [p] ()))
57
+ ]
58
+ ))]
59
+ ))
60
61
+;; primes = [2, 3] ++ [ cand | cand <- [5, 7..],
62
+;; all (\p -> notDvbl cand p)
63
+;; (takeWhile (\p -> p*p < cand) primes) ]
64
65
(defn -main [& args]
66
(alter-var-root #'*read-eval* (constantly false)))
0 commit comments