码迷,mamicode.com
首页 >  
搜索关键字:欧拉计划    ( 70个结果
欧拉计划(Euler Project)——第一题到第三题
题目一: 10以下的自然数中,属于3和5的倍数的有3,5,6和9,它们之和是23. 找出1000以下的自然数中,属于3和5的倍数的数字之和。 本题总结: 判断语句要善于用逻辑运算符。 题目二: 斐波那契数列中的每一项被定义为前两项之和。从1和2开始,斐波那契数列的前十项为: 1, 2, 3, 5, ...
分类:其他好文   时间:2016-09-22 12:56:56    阅读次数:158
Project Euler 第一题效率分析
Project Euler: 欧拉计划是一系列挑战数学或者计算机编程问题,解决这些问题需要的不仅仅是数学功底。 启动这一项目的目的在于,为乐于探索的人提供一个钻研其他领域并且学习新知识的平台,将这一平台打造一个有趣和休闲 的环境。 项目主页:https://projecteuler.net 第一题 ...
分类:其他好文   时间:2015-10-31 18:26:20    阅读次数:167
EularProject 40: 计算正整数连接构成无理数的确定位
Champernowne’s constant Problem 40 An irrational decimal fraction is created by concatenating the positive integers:0.123456789101112131415161718192021…It can be seen that the 12th digit of the fract...
分类:其他好文   时间:2015-07-18 02:06:56    阅读次数:158
EularProject 34: 一个数字与他每位数的阶乘和
Digit factorials Problem 34 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of their digits.Note: as 1! = 1 and 2...
分类:其他好文   时间:2015-07-09 00:50:46    阅读次数:166
欧拉计划(python) problem 25
1000-digit Fibonacci number Problem 25 The Fibonacci sequence is defined by the recurrence relation: Fn = Fn?1 + Fn?2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F...
分类:编程语言   时间:2015-06-18 09:52:36    阅读次数:175
欧拉计划(python) problem 26
Reciprocal cycles Problem 26 A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given: 1/2 =  0.5 1/3...
分类:编程语言   时间:2015-06-17 21:45:33    阅读次数:147
欧拉计划(python) problem 27
Quadratic primes Problem 27 Euler discovered the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. Howe...
分类:编程语言   时间:2015-06-17 21:37:46    阅读次数:149
欧拉计划(python) problem 29
Distinct powers Problem 29 Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5: 22=4, 23=8, 24=16, 25=32 32=9, 33=27, 34=81, 35=243 42=16, 43=64, 44=256, 45=1024 52=25, 5...
分类:编程语言   时间:2015-06-17 21:36:18    阅读次数:220
欧拉计划(python) problem 22
Names scores Problem 22 Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. ...
分类:编程语言   时间:2015-06-17 21:33:53    阅读次数:223
欧拉计划(python) problem 19
Counting Sundays Problem 19 You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday.Thirty days has September, April, June a...
分类:编程语言   时间:2015-04-16 10:27:29    阅读次数:170
70条   上一页 1 2 3 4 5 ... 7 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!