2014년 3월 1일 토요일

Euler Project: Problem 7

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?
 
$ cabal install Numbers
 
Prelude Data.Numbers.Primes> last $ take 10001 primes
104743

댓글 없음:

댓글 쓰기