# -*- coding: utf-8 -*- # http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%2016 # # Bignumで.. puts (2 ** 1000).to_s.chars.map(&:to_i).reduce(:+)