본문 바로가기
반응형

프로젝트 오일러9

[프로젝트 오일러] 문제9 - 특별한 피타고라스 트리플 문제 영문 Special Pythagorean triplet A Pythagorean triplet is a set of three natural numbers, a 2022. 9. 28.
[프로젝트 오일러] 문제8 - 시리즈에서 가장 큰 곱 문제 영문 The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 622298934233803081353362766142.. 2022. 9. 10.
[프로젝트 오일러] 문제7 - 10001번째 소수 문제 영문 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? 바로가기 한글 소수를 크기 순으로 나열하면 2, 3, 5, 7, 11, 13, ... 과 같이 됩니다. 이 때 10,001번째의 소수를 구하세요. 바로가기 해설 파이썬 (Python) + 수학적 해석 방법 1 소수란 1또는 자기 자신으로밖에 나누어 떨어지지 않는 수를 뜻합니다. 그러니 자기 자신보다 작거나 같은 수로 모두 나눠본 다음, 자기 자신으로밖에 나누어지지 않는다면 그 수는 소수입니다! prime_th = 0 n = 1 while prime_th 2022. 9. 9.
[프로젝트 오일러] 문제6 - 합 제곱 차 문제 영문 Sum square difference The sum of the squares of the first ten natural numbers is, 1² + 2² + ... + 10² = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)² = 55² = 3025 Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025−385=2640. Find the difference between the sum of the squares of the first.. 2022. 9. 9.
[프로젝트 오일러] 문제5 - 최소공배수 문제 영문 Smallest multiple 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부터 20까지의 수들의 최소공배수를 구하라는 문제입니다. 중학교 때 최소공배수를 구하던 정형화.. 2022. 9. 9.
[프로젝트 오일러] 문제4 - 가장 큰 대칭수 문제 영문 Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. 바로가기 한글 앞에서부터 읽을 때나 뒤에서부터 읽을 때나 모양이 같은 수를 대칭수(palindrome)라고 부릅니다. 두 자리 수를 곱해 만들 수 있는 대칭수 중 가장 큰 수는 9009 (= 91 × 99) 입니다. 세 자리 수를 곱해 만들 수 있는 가장 큰 대칭수는 얼마입니까? .. 2022. 9. 9.
반응형