# Project Euler

看看problem 1吧：

Add all the natural numbers below one thousand that are multiples of 3 or 5.

Prelude> sum [x|x<-[1..1000-1], x `mod` 3 == 0 || x `mod` 5 == 0]

233168

```Prelude> sum [x|x<-[1..10-1], x `mod` 3 == 0 || x `mod` 5 == 0]
23
Prelude> sum [x|x<-[1..100-1], x `mod` 3 == 0 || x `mod` 5 == 0]
2318
Prelude> sum [x|x<-[1..1000-1], x `mod` 3 == 0 || x `mod` 5 == 0]
233168
Prelude> sum [x|x<-[1..10000-1], x `mod` 3 == 0 || x `mod` 5 == 0]
23331668
Prelude> sum [x|x<-[1..100000-1], x `mod` 3 == 0 || x `mod` 5 == 0]
2333316668
Prelude> sum [x|x<-[1..1000000-1], x `mod` 3 == 0 || x `mod` 5 == 0]
233333166668```

FizzBuzz的解释如下：

it is a programming exercise in which goal is to list integers from 1 to 100, replacing those divisible by 3 with the term “Fizz,” those divisible by 5 with the term “Buzz,” and those divisible by both 3 and 5 with the term “FizzBuzz.”

```Prelude> [max(show x)(concat[n|(f,n)<-[(3,"Fizz"),(5,"Buzz")],mod x f==0])|x<-[1..100]]
["1","2","Fizz","4","Buzz","Fizz","7","8","Fizz","Buzz","11","Fizz","13","14","FizzBuzz","16","17","Fizz","19","Buzz","Fizz","22","23","Fizz","Buzz","26","Fizz","28","29","FizzBuzz","31","32","Fizz","34","Buzz","Fizz","37","38","Fizz","Buzz","41","Fizz","43","44","FizzBuzz","46","47","Fizz","49","Buzz","Fizz","52","53","Fizz","Buzz","56","Fizz","58","59","FizzBuzz","61","62","Fizz","64","Buzz","Fizz","67","68","Fizz","Buzz","71","Fizz","73","74","FizzBuzz","76","77","Fizz","79","Buzz","Fizz","82","83","Fizz","Buzz","86","Fizz","88","89","FizzBuzz","91","92","Fizz","94","Buzz","Fizz","97","98","Fizz","Buzz"]```
这个不是我想出来的， 看这里

Project Euler

• 0

开心

• 0

板砖

• 0

感动

• 0

有用

• 0

疑问

• 0

难过

• 0

无聊

• 0

震惊

The Fibonacci sequence is defined by the recurrence relation: Fn = Fn1 + Fn2, where F1 = 1 an

[Project Euler] 来做欧拉项目练习题吧: 题目015 周银辉 问题描述 Starting in the top left corner
project_2007图文教程(上).rar project_2007图文教程(中).rar project_2007图文教程(下).rar ======
project 修改工作日为休息日 比如国庆节，中秋节 在工具-更改工作时间 然后加入在例外日期加 时间范

http://www.aosabook.org/en/yocto.html <="" img=""> The Yocto Project Elizabeth Flanagan