c version of euler thingy for clojure timings