clojure: Switch to range/filter/reduce in 1.clj

Switch to range/filter/reduce approach to be consistent with solutions
in other languages.

Signed-off-by: Pekka Enberg <penberg@iki.fi>