refactored prime.clj to make it more clear