Project Euler
文章平均质量分 70
u010646472
这个作者很懒,什么都没留下…
展开
-
Project Euler 8
''' Created on 2014年8月30日 Largest product in a series The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 731671765313306249192251196744265747423原创 2014-09-01 22:01:34 · 428 阅读 · 0 评论 -
Project Euler 6
''' Created on 2014年8月29日 Sum square difference The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2原创 2014-08-29 22:40:02 · 250 阅读 · 0 评论 -
Project Euler 7
''' Created on 2014年8月30日 10001st prime 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? @author: wxp2971 ''' fro原创 2014-08-30 22:20:11 · 330 阅读 · 0 评论 -
Project Euler 10
''' Created on 2014年9月10日 Summation of primes The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. @author: wxp2971 ''' from numpy import * def isPr原创 2014-09-11 19:37:50 · 228 阅读 · 0 评论 -
Project Euler 5
''' Created on 2014年8月26日 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 even原创 2014-08-26 22:51:15 · 201 阅读 · 0 评论 -
Project Euler 4
''' Created on 2014年8月24日 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 larg原创 2014-08-24 23:53:21 · 225 阅读 · 0 评论 -
Project Euler 3
''' Created on 2014年8月23日 Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? @author: wxp2971 ''' from numpy import * #原创 2014-08-24 00:07:27 · 275 阅读 · 0 评论 -
Project Euler 2
''' Created on 2014年8月21日 Even Fibonacci numbers Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5原创 2014-08-22 20:30:31 · 218 阅读 · 0 评论 -
Project Euler 1
''' Created on 2014年8月20日 problem1 : Multiples of 3 and 5 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原创 2014-08-20 23:18:38 · 240 阅读 · 0 评论 -
Project Euler 9
''' Created on 2014年9月1日 Special Pythagorean triplet A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists e原创 2014-09-04 21:31:06 · 297 阅读 · 0 评论