일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 큰 수의 법칙
- 알지오매스
- 피타고라스 정리
- 이항분포
- 시뮬레이션
- project euler
- 작도
- 지오지브라
- 몬테카를로
- 프랙탈
- 파이썬
- 오일러
- 제곱근의뜻
- 프로젝트 오일러
- counting sunday
- java
- python
- 구분구적법
- algeomath
- 정오각형
- 상합
- 블록코딩
- 재귀함수
- 큰수의법칙
- 수학탐구
- 확률실험
- 하합
- 삼각함수의그래프
- 리만합
- Geogebra
- Today
- Total
목록프로젝트 오일러 (12)
이경수 선생님의 수학실험실
Problem 6(Sum square difference)The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025Hence 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 fi..
Problem 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? In Python:import time startTime = time.time() multiple = 1 temp = 0 for i in range(2, 21): for j in range(2, i+1): temp = multiple while i % j == 0: i = i / j if temp..
Problem 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. In Python:product=0; result=0; num=[] for i in range(100, 1000): for j in range(100, 1000): product=i*j num=str(product) if num==num[::-1]: if product>res..
Problem 3(Largest prime factor)The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ? In Python:import time start_time = time.time() num = 600851475143 i = 2 while i < (num / 2) + 1: while num % i == 0: num = num / i if num == 1: num = i break i += 1 print(int(num)) print(time.time() - start_time, "Seconds"Run time: 0.0020999908447265625 Seco..