Skip to content

Instantly share code, notes, and snippets.

View calebphillips's full-sized avatar

Caleb Phillips calebphillips

View GitHub Profile
@calebphillips
calebphillips / gist:2346422
Created April 9, 2012 20:35
Personal/Hobby Code Portfolio
@calebphillips
calebphillips / gist:1901853
Created February 24, 2012 16:21
Project Euler Problem 35
(ns euler.level2.problem035
(:use [clojure.contrib.lazy-seqs :only [primes]]
[euler.common :only [prime? parse-int]] ))
(defn rotate [[h & t]]
(apply str (concat t [h])))
(defn rotations [s]
(take (count s) (iterate rotate s)))