Re: Summations with Primes
- To: mathgroup at smc.vnet.net
- Subject: [mg39944] Re: [mg39932] Summations with Primes
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Thu, 13 Mar 2003 03:00:13 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
As long as i is not too large, effectively yes. For example, suppose your imin is 7 and imax is 31. Then: Sum[f[Prime[i]],{i,PrimePi[7],PrimePi[31]}] f[7]+f[11]+f[13]+f[17]+f[19]+f[23]+f[29]+f[31] is essentially what you wanted. Andrzej Kozlowski Yokohama, Japan http://www.mimuw.edu.pl/~akoz/ http://platon.c.u-tokyo.ac.jp/andrzej/ On Wednesday, March 12, 2003, at 04:29 pm, 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 > > > >