MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Summations with Primes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39980] Re: Summations with Primes
  • From: Mark Westwood <MarkCWestwood at compuserve.com>
  • Date: Thu, 13 Mar 2003 03:05:05 -0500 (EST)
  • References: <b4mnus$imf$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Anthony

The function Prime[n] returns the n-th prime number.  You should be able
to cobble together what you want with that, I think.  The Help Browser
says that Prime[n] is quite quick for n up to about 10^8.

Regards
Mark Westwood

Anthony Felder wrote:
> 
> Can you tell me if, when calculating a summation of f(i) where i goes from
> imin to imax, Mathematica can be forced to only use prime values for i?
> 
> Thank you for your time
> 
> Anthony Felder


  • Prev by Date: Re: Summations with Primes
  • Next by Date: Re: Summations with Primes
  • Previous by thread: Re: Summations with Primes
  • Next by thread: Re: Summations with Primes