[프로젝트 오일러/파이썬] Smallest multiple
·
Python & SQL/Python Problems
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 사이의 어떤 수로도 나누어 떨어지는 가장 작은 수는 얼마인가? # 문제 : 최소공배수 구하기 소인수 최소공배수 1 1 1(제외) 2 2 2 3 3 2*3 4 2^2 2^2*3 5 5 2^2*3*5 6 2*3 2^2*3*5 7 7 2^2*3*5*..