2013-07-16から1日間の記事一覧
短いcodeが好ければどうぞ。trickyじゃないcode golfでもない短いMobius函數 (メビウス関数) です。 # encoding=utf-8 # license: Public Domain def mobius n (2 .. n).reduce(1) do |current, prime| if n % prime == 0 current = -current n /= prime end…
.。oO(此のblogは、主に音樂と考察と Programming に分類されますよ。ヾ(〃l _ l)ノ゙♬♪♡)
音樂は SoundCloud に公開中です。
考察は現在は主に Scrapbox で公表中です。
Programming は GitHub で開發中です。
短いcodeが好ければどうぞ。trickyじゃないcode golfでもない短いMobius函數 (メビウス関数) です。 # encoding=utf-8 # license: Public Domain def mobius n (2 .. n).reduce(1) do |current, prime| if n % prime == 0 current = -current n /= prime end…