Skip to content

Commit

Permalink
third test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
adammartin committed Feb 27, 2012
1 parent 6131ac9 commit 6a60db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primefactors/core.clj
@@ -1,7 +1,7 @@
(ns primefactors.core)

(defn primefactors [n]
(if (= 2 n)
(list 2)
(if (<= 2 n)
(list n)
(list))
)

0 comments on commit 6a60db8

Please sign in to comment.