in reply to Re: Project Euler (a series of challenging mathematical/computer programming problems)
in thread Project Euler (a series of challenging mathematical/computer programming problems)
How many do you want? The first 1,000, first 10,000 and first 1 to 15 million.
Download the list of your choice, reformat it to one/line and a fixed length (9 chars +newline covers the first 15 million), and you can grab as many as you need quickly and cheaply.
my $wanted = 500; open my $primes, '<', 'primes.txt' or die $!; my @primes = split "\s+", do{ local $/=\($wanted * 10); <$primes> }; close $primes;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Project Euler (a series of challenging mathematical/computer programming problems)
by GrandFather (Saint) on Feb 04, 2006 at 21:23 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2006 at 23:53 UTC | |
by GrandFather (Saint) on Feb 05, 2006 at 00:29 UTC | |
by BrowserUk (Patriarch) on Feb 05, 2006 at 00:39 UTC | |
|
Re^3: Project Euler (a series of challenging mathematical/computer programming problems)
by radiantmatrix (Parson) on Feb 07, 2006 at 16:04 UTC |