|
|
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: Gottfried Barthel <Gottfried.Bart...@fmi.uni-konstanz.de>
Date: Wed, 01 Aug 2001 12:11:36 +0200
Local: Wed, Aug 1 2001 6:11 am
Subject: Looking for files of prime numbers
Dear Newgroup readers,
can anyone of you point out to me where to find lists of consecutive Any help would be appreciated. Regards from Konstanz, Gottfried Barthel Fachbereich Mathematik und Statistik, Universitaet Konstanz -- Gottfried Barthel ---------------------------------------------------------------------- (Fixed-width font, line lenght at least 72 characters) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: "fredm" <nospam_fred...@hotmail.com>
Date: Wed, 1 Aug 2001 06:30:06 -0400
Local: Wed, Aug 1 2001 6:30 am
Subject: Re: Looking for files of prime numbers
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: Nico Benschop <n.bensc...@chello.nl>
Date: Wed, 01 Aug 2001 13:27:31 +0200
Local: Wed, Aug 1 2001 7:27 am
Subject: Re: Looking for files of prime numbers
Gottfried Barthel wrote: Try "The Prime pages" of prof. Chris Caldwell, > Dear Newgroup readers, for just about _anything_ regarding primes: http://www.utm.edu/~caldwell/ -- NB You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: "Richard B. Kreckel" <Richard.Krec...@Uni-Mainz.DE>
Date: 1 Aug 2001 11:51:28 GMT
Local: Wed, Aug 1 2001 7:51 am
Subject: Re: Looking for files of prime numbers
In sci.math.symbolic Gottfried Barthel <Gottfried.Bart...@fmi.uni-konstanz.de> wrote:
: can anyone of you point out to me where to find lists of consecutive : primes say up to the range of the 50000th prime on the web? Reason: For : experimentally checking which prime numbers have some specific property, : I am running Maple's built-in "ithprime" function for increasingly : larger values of the counter. Maple's "ithprime" reads the first N : primes off from a list (where N is slightly larger than 30000), but as : soon as one wants to exceed these bounds, things get really very much : slowed down: Whereas the kind of test I want to do takes some 50 seconds : for the 500 primes in the range 24500 .. 25000, it takes some 10 minutes : for the 125 primes in the range 37000 .. 37125, most of which is : certainly used for finding these primes. : : Any help would be appreciated. Why not hack a sieve in a few lines of C-code? : Regards from Konstanz, Regards from downstream You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: Gottfried Barthel <Gottfried.Bart...@fmi.uni-konstanz.de>
Date: Wed, 01 Aug 2001 18:06:37 +0200
Local: Wed, Aug 1 2001 12:06 pm
Subject: Re: Looking for files of prime numbers
Thanks to all of you for your answers. The "Prime number pages" are just
great! A surprisingly simple and efficient Maple solution has been communicated primes := array(1..50000): This works really well; on the SUN Ultra 10 (300 MHz) in my office, it Regards from Konstanz, Gottfried Barthel Fachbereich Mathematik und Statistik, Universitaet Konstanz You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: Gottfried Barthel <Gottfried.Bart...@fmi.uni-konstanz.de>
Date: Wed, 01 Aug 2001 19:09:08 +0200
Local: Wed, Aug 1 2001 1:09 pm
Subject: Speeding up the code (Re: Looking for files of prime numbers)
Hello all,
this is a brief addendum to the previous message: I just checked that at the beginning, a simple additional "if"-switch in primes := array(1..50000): It thus took Maple 8 sec. instead of 53 sec. on my own Mac G3 PowerBook Regards from Konstanz, Gottfried Barthel Fachbereich Mathematik und Statistik, Universitaet Konstanz You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: isr...@math.ubc.ca (Robert Israel)
Date: 1 Aug 2001 20:53:42 GMT
Local: Wed, Aug 1 2001 4:53 pm
Subject: Re: Looking for files of prime numbers
In article <3B68290D.F6636...@fmi.uni-konstanz.de>,
Gottfried Barthel <Gottfried.Bart...@uni-konstanz.de> wrote: >A surprisingly simple and efficient Maple solution has been communicated I don't know how you come to that conclusion. >to me directly by David G Radcliffe: > primes := array(1..50000): > p := 1: > for i from 1 to 50000 do > p := nextprime(p): > primes[i] := p > od: >This works really well; on the SUN Ultra 10 (300 MHz) in my office, it >takes less than two minutes. The next 50000 primes take significantly >more time -- about 8 1/2 minutes --, but this is still quite reasonable. >This shows that Maple's "nextprime" is much more efficient than >"ithprime" in finding prime numbers, which comes as kind of surprise. On my computer (Pentium II/266, Windows 95) in Maple 7, Radcliffe's program took 62 seconds, but the following took less than 41 seconds: primes:= array(1..50000); Both ithprime(i) (if i < 100000) and nextprime(p) use very similar Robert Israel isr...@math.ubc.ca You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: F...@safebunch.com
Date: Wed, 01 Aug 2001 21:48:03 GMT
Local: Wed, Aug 1 2001 5:48 pm
Subject: Re: Looking for files of prime numbers
Using Mathematica, the entire code is :
Table[Prime[i],{i,1,50000}] It took 1.6 seconds on a PIII 600 MHz Windows NT 4.0 machine for 50000. Doing the first 100000 took a whole 3.5 seconds. I'll email you the list if you'd like. Wilson In article <9k9q8m$28...@nntp.itservices.ubc.ca>, Robert Israel says... You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: "The Scarlet Manuka" <sa...@maths.uwa.edu.au>
Date: Thu, 2 Aug 2001 11:25:12 +0800
Local: Wed, Aug 1 2001 11:25 pm
Subject: Re: Looking for files of prime numbers
"Gottfried Barthel" <Gottfried.Bart...@fmi.uni-konstanz.de> wrote in
message news:3B68290D.F66369F1@fmi.uni-konstanz.de... > This works really well; on the SUN Ultra 10 (300 MHz) in my office, it I don't see why; once you get significantly past the list, each call > takes less than two minutes. The next 50000 primes take significantly > more time -- about 8 1/2 minutes --, but this is still quite reasonable. > This shows that Maple's "nextprime" is much more efficient than > "ithprime" in finding prime numbers, which comes as kind of surprise. to ithprime has to determine all the previous primes past the list too. Using nextprime means you only need to determine one more prime on each call. So the results you report are what I would expect. -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: sci.math, sci.math.symbolic, comp.soft-sys.math.maple
From: ecl...@math.usf.edu (E. Clark)
Date: 2 Aug 2001 07:54:42 -0700
Local: Thurs, Aug 2 2001 10:54 am
Subject: Re: Looking for files of prime numbers
"The Scarlet Manuka" <sa...@maths.uwa.edu.au> wrote in
> I don't see why; once you get significantly past the list, each call recursive procedure `ithprime/small` which creates a remember table. So it doesn't have to determine all previous primes. Maple 6 to begin with has builtin a rather large table of values the largest of which is ithprime(22299999) = 36447497, op(4,evalf(`ithprime/large`)); will give the full table. So even at You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2010 Google |