尔冬橙

博客园 首页 新随笔 联系 订阅 管理

2012年5月13日 #

摘要: 欧拉计划,第7题,找出第10001个素数 阅读全文
posted @ 2012-05-13 23:02 尔冬橙 阅读(323) 评论(0) 推荐(0) 编辑

摘要: 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 = . 阅读全文
posted @ 2012-05-13 22:29 尔冬橙 阅读(250) 评论(0) 推荐(0) 编辑

摘要: 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? static void Main(string[] args) { long startTime, endTime; Int64 f=... 阅读全文
posted @ 2012-05-13 22:04 尔冬橙 阅读(295) 评论(0) 推荐(0) 编辑