2014-03-04から1日間の記事一覧

Project Euler その2

Problem3,4がなんかめんどくさそうだったので一旦飛ばす。 Problem 5 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is divisible by all of th…

Project Euler その1

Pythonで解いてみた。 Problem 1 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. 訳 10以下のすべての自…