Sudal's Garage

Project Euler 5 본문

Programming/Project Euler - python

Project Euler 5

_Sudal 2019. 1. 30. 14:33

Question: 


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 evenly divisible by all of the numbers from 1 to 20?

문제:

1 ~ 10 사이의 어떤 수로도 나누어 떨어지는 가장 작은 수는 2520입니다.

그러면 1 ~ 20 사이의 어떤 수로도 나누어 떨어지는 가장 작은 수는 얼마입니까?


Solution:


1
print(1 * 2 * 3 * 2 * 5 * 7 * 2 * 3 * 11 * 13 * 2 * 17 * 19)
cs


설명도 필요없는 간단한 수학문제



'Programming > Project Euler - python' 카테고리의 다른 글

Project Euler 8  (0) 2019.02.05
Project Euler 6  (0) 2019.01.30
Project Euler 4  (0) 2019.01.30
Project Euler 3  (0) 2019.01.30
Project Euler 2  (0) 2019.01.30