1 ! Copyright (c) 2007 Aaron Schaefer.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: lists math math.primes.lists project-euler.common ;
6 ! http://projecteuler.net/index.php?section=problems&id=7
11 ! By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see
12 ! that the 6th prime is 13.
14 ! What is the 10001st prime number?
20 : euler007 ( -- answer )
23 ! [ euler007 ] 100 ave-time
24 ! 5 ms ave run time - 1.13 SD (100 trials)