Skip to content

Instantly share code, notes, and snippets.

@johnwalker
Created November 10, 2013 15:44
Show Gist options
  • Save johnwalker/7399731 to your computer and use it in GitHub Desktop.
Save johnwalker/7399731 to your computer and use it in GitHub Desktop.
(ns power-digit-sum
(:use [clojure.math.numeric-tower]))
(->> (expt 2N 1000)
(str)
(map str)
(map read-string)
(apply +))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment