http://beecoder.org/ja/javascript/find-lcm-in-javascript
LCM を検索, JavaScript