何かを書き留める何か

数学や読んだ本について書く何かです。最近は社会人として生き残りの術を学ぶ日々です。

2013-01-14から1日間の記事一覧

Project Euler Problem 16

2^(15) = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 2^(1000)? http://projecteuler.net/problem=16 2^(1000)の各桁の和を求める問題。力任せに書くと次のようになるか: ---- sum(map(int,s…