MathGroup Archive 2003

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

Search the Archive

Re: Summations with Primes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39943] Re: Summations with Primes
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 13 Mar 2003 03:00:10 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <b4mnus$imf$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

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

Hi,

Sum[If[PrimeQ[i],YourSummand[i],0],{i,imin,imax}]

??

Regards
  Jens


  • Prev by Date: Re: This should evaluate to zero
  • Next by Date: Re: Summations with Primes
  • Previous by thread: Re: Summations with Primes
  • Next by thread: Re: Summations with Primes