码迷,mamicode.com
首页 >  
搜索关键字:projecteuler    ( 83个结果
Python练习题 034:Project Euler 006:和平方与平方和之差
本题来自 Project Euler 第6题:https://projecteuler.net/problem=6 这题纯粹是送分题,就是简单的加减法和乘方计算。应该没啥算法可言吧。。。 ...
分类:编程语言   时间:2016-10-29 01:50:29    阅读次数:259
Python练习题 035:Project Euler 007:第10001个素数
本题来自 Project Euler 第7题:https://projecteuler.net/problem=7 求解第 10001 个素数。 上述代码的思路其实挺简单:首先自定义一个函数,用来判断某个数字是否为素数。之后从数字1开始判断,只要是素数,就放进 lst 列表,直到 len(lst) ...
分类:编程语言   时间:2016-10-29 01:40:19    阅读次数:244
projecteuler 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. 译文: 10以下的素数之和为17,求出2000000以下的素数之和。 第一次code: 1 ...
分类:其他好文   时间:2016-09-05 00:02:04    阅读次数:412
projecteuler 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 i ...
分类:其他好文   时间:2016-08-24 00:56:04    阅读次数:129
PYTHON--欧拉习题一
练习题来源:https://projecteuler.net/archivesProblem1:Ifwelistallthenaturalnumbersbelow10thataremultiplesof3or5,weget3,5,6and9.Thesumofthesemultiplesis23.Findthesumofallthemultiplesof3or5below1000.问题1:在10(不包括10)以内的自然数中,能够被3或5整除的数字..
分类:编程语言   时间:2016-04-26 22:26:14    阅读次数:349
PYTHON--欧拉习题二
练习题来源:https://projecteuler.net/archivesProblem2EachnewtermintheFibonaccisequenceisgeneratedbyaddingtheprevioustwoterms.Bystartingwith1and2,thefirst10termswillbe:1,2,3,5,8,13,21,34,55,89,...ByconsideringthetermsintheFibonaccisequencewhosevaluesdonotexce..
分类:编程语言   时间:2016-04-26 22:22:24    阅读次数:385
Project Euler 第一题效率分析
Project Euler: 欧拉计划是一系列挑战数学或者计算机编程问题,解决这些问题需要的不仅仅是数学功底。 启动这一项目的目的在于,为乐于探索的人提供一个钻研其他领域并且学习新知识的平台,将这一平台打造一个有趣和休闲 的环境。 项目主页:https://projecteuler.net 第一题 ...
分类:其他好文   时间:2015-10-31 18:26:20    阅读次数:167
欧拉工程第73题:Counting fractions in a range
题目链接:https://projecteuler.net/problem=73n/d的真分数 ,当d《=12000时 在1/3 and 1/2 之间的有多少个public class P73{ void run(){ FareySequences(); }...
分类:其他好文   时间:2015-09-27 22:46:57    阅读次数:267
欧拉工程第71题:Ordered fractions
题目链接:https://projecteuler.net/problem=71Ifn2;q--){ p = (a*q-1)/b; if(p*s>r*q){ s = q; r = p; ...
分类:其他好文   时间:2015-09-27 22:46:23    阅读次数:212
projecteuler之58题Spiral primes
package com.android;public class SpiralPrimes { public static void main(String args[]) { long numPrimes = 0; long numAll = 0; long oneStart = 1; f...
分类:其他好文   时间:2015-09-14 13:38:13    阅读次数:133
83条   上一页 1 2 3 4 5 6 ... 9 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!