2010-04-30から1日間の記事一覧
http://projecteuler.net/index.php?section=problems&id=36 10進の回文数を再帰的に生成して、それが2進で回文になっているかを調べる。
http://projecteuler.net/index.php?section=problems&id=21 Sequenceは遅延評価らしいです。大きなSequenceもメモリを食うことはありません。 let N = int64 1e8 printfn "%d" (Seq.sum (seq { 1L..N }))Seq.toListもListを中に持って一つずつ出していくよ…