You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find all numbers within a range all numbers which are divisible by every number between 1 to 10
(defnfind-nums [frm to]
"Find all numbers in the inclusive range (frm, to) which can be divided by all number between (1, 10)"
(->> (range frm (+ to 1))
(map (fn [num]
[num
(->> (range111)
(map #(= (rem num %) 0))
(map #(if (not %) 01))
(reduce +))]))
(filter #(= (second %) 10))
(map first)))